Fatal error: Uncaught Exception: 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 ') AS special FROM oc4h_category_path cp LEFT JOIN oc4h_product_to_category p2c O' at line 1<br />Error No: 1064<br />SELECT p.product_id, (SELECT AVG(rating) AS total FROM oc4h_review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating, p.discount, (p.price * 0.8)) AS special FROM oc4h_category_path cp LEFT JOIN oc4h_product_to_category p2c ON (cp.category_id = p2c.category_id) LEFT JOIN oc4h_product p ON (p2c.product_id = p.product_id) LEFT JOIN oc4h_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN oc4h_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE pd.language_id = '1' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND cp.path_id = '9670105' GROUP BY p.product_id ORDER BY p.quantity > 0 DESC, p.sort_order ASC, LCASE(pd.name) ASC LIMIT 0,32 in /home/tok in /home/tokby/public_html/system/library/db/mysqli.php on line 48