Error infos: 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 '-40,40' at line 1 Error sql: Select id From `dede_arctiny` arc where 1 And ( arc.typeid = '426' ) order by arc.sortrank desc limit -40,40