Error: MySQL server has gone away
Error No: 2006
SELECT COUNT(*) AS total FROM vinatech_product_to_category p2c LEFT JOIN vinatech_product p ON (p2c.product_id = p.product_id) LEFT JOIN vinatech_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 p2c.category_id = '233'