A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-500,500' at line 5

select * from catalogs c where c.is_block=0 and c.is_show=1 and c.pid IN(23,25,27,28,99,104,4) order by c.`order` limit -500,500

Filename: core/MY_Model.php

Line Number: 337