SELECT SQL_NO_CACHE COUNT(*) FROM `bopluskz_ads` JOIN (SELECT adv_id FROM `bopluskz_adswordindex` WHERE ((dict_id = 0 AND word_id = 376) OR (dict_id = 0 AND word_id = 377) OR (dict_id = 0 AND word_id = 22383) OR (dict_id = 0 AND word_id = 97043)) GROUP BY adv_id ) as DW ON id = adv_id WHERE info_new = 0: Lost connection to MySQL server during query