Error executing query: SELECT t2.slug as slug,t2.name_ru as name,t1.Topic as subject, t1.Body as review, t1.Author as author,t1.productID as productID, UNIX_TIMESTAMP(t1.add_time) as pubDate, CONCAT(t1.productID,'#',t1.DID) as guid, t1.DID as newsID FROM SC_discussions as t1 LEFT JOIN SC_products as t2 ON(t1.productID = t2.productID) ORDER BY DID DESC LIMIT 20
The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1 or SET MAX_JOIN_SIZE=# if the SELECT is okay