SELECT * FROM ck_news,ck_cate_news WHERE ck_news.id_ref_cnews=ck_cate_news.id_cnews AND active_news = 1 AND id_ref_cnews= ORDER BY id_news desc LIMIT 0, 1
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id_news desc LIMIT 0, 1' at line 1