DB ERROR: 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 '-30,30' at line 1

SELECT SQL_CALC_FOUND_ROWS p.id, p.group_id, p.site_id, p.category_id, p.name, p.image_file,m.markup,m.is_hit,p.brand as p_brand, MAX(m.discount) AS discount, MIN(m.price_buy*(1+m.markup/100) ) AS new_price, MIN(m.price_sell * (1 - m.discount)) AS price_sell,m.price_buy,m.price_opt, ROUND(1-( m.price_buy*(1+m.markup/100) )/(m.price_buy*4),2) AS new_discount, IF(p.name_ru != '', p.name_ru, p.name) AS name, ( SELECT GROUP_CONCAT(size SEPARATOR '|') FROM mod_catalog_products_mods WHERE product_id = p.id AND is_enabled = '1' GROUP BY product_id ) AS sizes_list, UNIX_TIMESTAMP(p.updated_at) AS updated_at_ts FROM mod_catalog_products AS p INNER JOIN mod_catalog_products_mods AS m ON(p.id = m.product_id) WHERE ( (p.site_id != 10 AND p.site_id != 1 or m.is_hit = 1 or p.site_id = 320) AND p.is_enabled = '1' AND m.is_enabled = 1) AND p.is_enabled = '1' AND m.is_enabled = '1' AND p.image_file != '' AND p.category_id IN(56,1266,1352,1737,1267,1261,1265,1269,1262,1263,1260,1268,1264) GROUP BY p.id ORDER BY p.popular DESC, p.rating ASC LIMIT -30,30