Fatal error: Uncaught Exception: Error: 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 'FROM oc_product_to_category p2c LEFT JOIN oc_product p ON (p2c.product_id = p...' at line 1<br />Error No: 1064<br />SELECT p.product_id, pd.price AS discount, ps.price AS special FROM oc_product p LEFT JOIN (SELECT product_id, MIN(price) AS price FROM oc_product_discount WHERE customer_group_id = '1' AND quantity = '1' AND ((date_start = '0000-00-00' OR date_start < NOW()) AND (date_end = '0000-00-00' OR date_end > NOW())) GROUP BY product_id) pd ON p.product_id = pd.product_id LEFT JOIN (SELECT product_id, MIN(price) AS price FROM oc_product_special WHERE customer_group_id = '1' AND ((date_start = '0000-00-00' OR date_start < NOW()) AND (date_end = '0000-00-00' OR date_end > NOW())) GROUP BY product_id) ps ON p.product_id = ps.product_id FROM oc_product_to_category p2c LEFT JOIN oc_product p ON (p2c.product_id = p.product_id) LEFT JOIN oc_product in /home/web/arsenal-prime.ru/www/system/library/db/mysqli.php on line 41