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_gongqiu where checked=1 and classid in (22,23,24,25,26,27) order by istop desc,newstime DESC,id desc limit -25,25