Fatal error: Uncaught Exception: Error: Incorrect DATE value: '0000-00-00'<br />Error No: 1525<br />
SELECT COUNT(DISTINCT p.product_id) total
FROM `oc_product` p
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 EXISTS (SELECT product_id 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 < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW()))) in /home/ceopanel/public_html/liderkahve/system/library/db/mysqli.php:41
Stack trace:
#0 /home/ceopanel/public_html/liderkahve/storage/modification/system/library/db.php(55): DB\MySQLi->query('\n\t\t\tSELECT COUN...')
#1 /home/ceopanel/public_html/liderkahve/system/library/journal3/opencart/model.php(48): DB->query('\n\t\t\tSELECT COUN...')
#2 in /home/ceopanel/public_html/liderkahve/system/library/db/mysqli.php on line 41