Invalid Query : 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 'and a_published = 1 and c_id not in (39,83) and c_id>0 order by writtenTime limi' at line 1
SELECT a_headline,a_slug , writtenTime from cp_article where a_id > and a_published = 1 and c_id not in (39,83) and c_id>0 order by writtenTime limit 1