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 classid='8' order by id limit 1' at line 1
select isurl,titleurl,classid,id,title from ***_ecms_news where id> and classid='8' order by id limit 1