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 ')' at line 11<br />Error No: 1064<br />
SELECT COUNT(DISTINCT p.product_id) total
FROM `product` p
LEFT JOIN `product_description` pd ON (p.product_id = pd.product_id)
LEFT JOIN `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 = '2'
AND () in /home/tosalt/domains/gpsmeistras.lt/public_html/vqmod/vqcache/vq2-system_library_db_mysqli.php:41
Stack trace:
#0 /home/tosalt/domains/gpsmeistras.lt/public_html/system/storage/modification/system/library/db.php(58): DB\MySQLi->query('\n\t\t\tSELECT COUN...')
#1 /home/tosalt/domains/gpsmeistras.lt/public_html/system/library/journal3/opencart/model.php(48): DB->query('\n\t\t\tSELECT COUN...')
#2 /home/tosalt/domains/gpsmeistras.lt/public_html/vqmod/vqcache/vq2-catalog_m in /home/tosalt/domains/gpsmeistras.lt/public_html/vqmod/vqcache/vq2-system_library_db_mysqli.php on line 41