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 '-25,25' at line 1
select * from ***_ecms_chanpin where checked=1 and classid in (29,30,31,36) order by istop desc,newstime DESC,id desc limit -25,25