Fatal error: Uncaught Exception: Error: Unknown column 'ps.quantity' in 'where clause'<br />Error No: 1054<br />SELECT COUNT(DISTINCT ps.product_id) AS total FROM oc_product_special ps LEFT JOIN oc_product p ON (ps.product_id = p.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 ps.customer_group_id = '4' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND ps.quantity != '0' AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) in /var/www/u1607127/data/www/socks-online.ru/system/library/db/mysqli.php:40
Stack trace:
#0 /var/www/u1607127/data/www/socks-online.ru/system/library/db.php(16): DB\MySQLi->query('SELECT COUNT(DI...', Array)
#1 /var/www/u1607127/data/www/socks-online.ru/system/storage/modification/catalog/model/catalog/product.php(781): DB->query('SELECT COUNT(DI...')
#2 /var/www/u1607127/data/www/socks-online.ru/vqmod/vqcache/vq2-system_storage_modification_system_engine_loader.php(178): M in /var/www/u1607127/data/www/socks-online.ru/system/library/db/mysqli.php on line 40