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 '-24,24' at line 1SELECT * FROM `product` WHERE (shopcat_cat_id LIKE '%#0#%') AND (shop_id='101319') AND (p_pause!='pause') ORDER BY p_sort desc , p_update DESC , p_id DESC LIMIT -24,24