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 '-6, 6' at line 11

SELECT DISTINCT `p`.*, `mt`.`mt_title`, `pt`.`pt_title`, `pt`.`pt_friendly_url`, `pt`.`pt_description`, `pt`.`pt_title_seo`, `pt`.`pt_meta_k`, `pt`.`pt_meta_d` FROM (`products` as `p`, `products`) LEFT JOIN `products_trans` as `pt` ON `p`.`id` = `pt`.`pt_product_id` LEFT JOIN `languages` as `l` ON `l`.`id` = `pt`.`pt_language_id` LEFT JOIN `manufacturers_trans` as `mt` ON `p`.`p_manufacturers_id` = `mt`.`mt_manufacturers_id` AND `mt`.`mt_language_id` = `pt`.`pt_language_id` JOIN `products_chains` as `pc` ON `pc`.`pc_product_id` = `p`.`id` WHERE `pt`.`pt_language_id` = '2' AND `p`.`p_visibility` = 1 AND FIND_IN_SET(pc.pc_catalog_id, '39') ORDER BY `p`.`p_priority` ASC LIMIT -6, 6

Filename: core/MY_Model.php

Line Number: 36