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 desc limit 10' at line 1 select * from phome_ecms_ where order by desc limit 10
[phomenews]"select * from phome_ecms_news where newstime > SUBDATE(NOW(),INTERVAL 30 DAY) AND classid in('3') order by onclick desc limit 10",10,30,1,24,1,'(m-d)'[/phomenews]