SELECT id_news FROM ch_news WHERE `id_news_type` = 17 AND `id_active` = 1 AND `id_delete` = 0 AND dt_publish <= NOW() AND dt_publish != '0000-00-00 00:00:00' AND YEAR(dt_publish) = "2014" AND MONTH(dt_publish) = "10" ORDER BY dt_publish DESC LIMIT 0,8 here