Fatal error: Uncaught exception 'Exception' with message '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 ') LIMIT 6 ) r LIMIT 6' at line 7<br />Error No: 1064<br /> SELECT * FROM (SELECT related_id FROM ocrv_product_related pr LEFT JOIN ocrv_product p ON (pr.related_id = p.product_id) LEFT JOIN ocrv_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pr.product_id = '0' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' UNION ALL SELECT product_id as related_id FROM ocrv_product_to_category pc WHERE pc.category_id IN (SELECT category_id FROM ocrv_product_to_category pc2 WHERE product_id = ) LIMIT 6 ) r LIMIT 6' in /home/ihavedicbeauty/public_html/system/library/db/mysqli.php:79 Stack trace: #0 /home/ihavedicbeauty/public_html/system/library/db.php(16): DB\MySQLi->query('\r\n\t\t\t\t\tSELECT *...', Array) #1 /home/ihavedicbeauty/public_html/ in /home/ihavedicbeauty/public_html/system/library/db/mysqli.php on line 79