Error Number: 1064
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 'LIMIT 12' at line 8
SELECT `sss_portfolio`.`portfolio_name`, `sss_product`.`slug` as pslug, `sss_portfolio`.`portfolio_image`, `sss_portfolio`.`image_title`, `sss_product`.`status` as pstatus, `sss_portfolio`.`product_id` as pproductid, `sss_product`.`product_id` as pro_id, `sss_portfolio`.`category_id` as category_id FROM (`sss_portfolio`) LEFT JOIN `sss_product` ON `sss_portfolio`.`product_id`=`sss_product`.`product_id` WHERE `sss_portfolio`.`status` = '1' AND `sss_portfolio`.`is_deleted` = '0' AND `sss_portfolio`.`category_id` = '3' AND `sss_portfolio`.`product_id` != LIMIT 12
Filename: /home/standpouk/public_html/helpers/custom_helper.php
Line Number: 2638