Error: Table 'yanecouk_db.product_to_category' doesn't exist
Error No: 1146
SELECT COUNT(*) AS total FROM product_to_category p2c LEFT JOIN product p ON (p2c.product_id = p.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 = '10' AND p2c.category_id = '1946'