Notice: Undefined variable: category_info in /home/c/cj45038/medvenica.ru/public_html/vqmod/vqcache/vq2-catalog_controller_product_product.php on line 441Notice: 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 ') LEFT JOIN oc_product_description pd ON (pd.product_id = p.product_id) WHERE pt' at line 1
Error No: 1064
SELECT p.*, pd.*, (SELECT price FROM oc_product_special ps WHERE ps.product_id = p.product_id AND ps.customer_group_id = '1' AND ((ps.date_start = '0000-00-00' OR ps.date_start < '2024-07-19 15:40:00') AND (ps.date_end = '0000-00-00' OR ps.date_end > '2024-07-19 15:40:00')) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS special, (SELECT AVG(rating) AS total FROM oc_review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating, (SELECT COUNT(*) AS total FROM oc_review r2 WHERE r2.product_id = p.product_id AND r2.status = '1' GROUP BY r2.product_id) AS reviews FROM oc_product p LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id AND p2s.store_id = '0') LEFT JOIN oc_product_to_category ptc ON (ptc.product_id = p.product_id AND ptc.category_id = ) LEFT JOIN oc_product_description pd ON (pd.product_id = p.product_id) WHERE ptc.product_id != 2516 AND p.status = '1' AND p.date_available <= '2024-07-19 15:40:00' in /home/c/cj45038/medvenica.ru/public_html/system/database/mysqliz.php on line 53