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