Notice: Error: Unknown column 'p2c.category_id' in 'where clause'
Error No: 1054
SELECT COUNT(DISTINCT ps.product_id) AS total FROM gcs_product_to_category p2cLEFT JOIN gcs_product p ON (p2c.product_id = p.product_id) LEFT JOIN gcs_product_special ps ON (ps.product_id = p.product_id) LEFT JOIN gcs_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 = '2' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) AND p2c.category_id = '59' in /usr/www/users/keedovyeuy/system/database/mysql.php on line 50