Error: Got error 28 from storage engine
Error No: 1030
SELECT *, pd.name AS name, p.image, m.name AS manufacturer, ss.name AS stock, (SELECT AVG(r.rating) FROM review r WHERE p.product_id = r.product_id GROUP BY r.product_id) AS rating, IFNULL((SELECT MIN(o2.price) FROM product_option_value o2 WHERE o2.product_id = p.product_id AND o2.status <> '0'),p.price) AS price, (SELECT DISTINCT(o2.option_discount) FROM product_option_value o2 WHERE o2.product_id = p.product_id AND o2.status <> '0' AND o2.price = IFNULL((SELECT MIN(o3.price) FROM product_option_value o3 WHERE o3.product_id = p.product_id AND o3.status <> '0'),p.price)) AS option_discount, (SELECT MAX(o4.quantity) FROM product_option_value o4 WHERE o4.product_id = p.product_id AND o4.status <> '0') AS max_quantity FROM product p LEFT JOIN product_description pd ON (p.product_id = pd.product_id) LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id) LEFT JOIN manufacturer m ON (p.manufacturer_id = m.manufacturer_id) LEFT JOIN stock_status ss ON (p.stock_status_id = ss.stock_status_id) LEFT JOIN product_to_category p2c ON (p.product_id = p2c.product_id) WHERE p.status = '1' AND p.date_available <= NOW() AND pd.language_id = '1' AND p2s.store_id = '0' AND ss.language_id = '1' AND p2c.category_id = '274' ORDER BY p.sort_order ASC