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 'LEFT JOIN `oc_product_description` pd ON (p.product_id = pd.product_id) LE...' at line 4
Error No: 1064
SELECT COUNT(DISTINCT s1.product_id) total FROM ( SELECT p.product_id LEFT JOIN `oc_product_description` pd ON (p.product_id = pd.product_id) LEFT JOIN `oc_product_to_store` p2s ON (p.product_id = p2s.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND pd.language_id = '1' AND p.manufacturer_id = '59' AND p.is_archive = '0') AS s1 in /home/www/clients/client0/web6/web/system/library/db/mysqli.php on line 65