Error: Table '_cartproduct' is marked as crashed and should be repaired
Error No: 1194
SELECT COUNT(*) AS total FROM _cartproduct_to_category p2c LEFT JOIN _cartproduct p ON (p2c.product_id = p.product_id) LEFT JOIN _cartproduct_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 = '50'