Notice: 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 ') AND p.status = 1 AND pd.product_id<>'1350' AND p.quantity>'0' AND pd.language_' at line 4
Error No: 1064
SELECT pd.product_id as related_id FROM oc_product_description AS pd LEFT JOIN oc_product AS p ON p.product_id = pd.product_id LEFT JOIN oc_product_to_store AS p2s ON p2s.product_id = pd.product_id WHERE ( ) AND p.status = 1 AND pd.product_id<>'1350' AND p.quantity>'0' AND pd.language_id = '1' AND p2s.store_id = '0' GROUP BY pd.product_id LIMIT 3; in /var/www/dostavkatabaka/data/www/dostavka-tabaka.ru/system/database/mysql.php on line 50