1030 Got error 28 from storage engine
in:
[select p.products_id, p.products_type,p.products_status,p.products_price,p.products_price_retail,p.products_price_sample,p.product_is_wholesale,p.product_wholesale_min,p.products_quantity, p.products_quantity_order_min, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, (CASE (select count(a.products_id) from specials a where a.products_id=p.products_id and a.status = 1) WHEN 0 THEN 0 ELSE 1 END) as flag_specials, (CASE (select count(b.products_id) from featured b where b.products_id=p.products_id and b.status = 1) WHEN 0 THEN 0 ELSE 1 END) as flag_featured, (CASE (select count(b.products_id) from products b where b.products_id=p.products_id and p.products_date_added >=20140627 ) WHEN 0 THEN 0 ELSE 1 END) as flag_new from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p2c.products_id = s.products_id where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and ( p2c.categories_id =2 or p2c.categories_id =3 or p2c.categories_id =4 or p2c.categories_id =5 or p2c.categories_id =6 or p2c.categories_id =7 or p2c.categories_id =8 or p2c.categories_id =9 or p2c.categories_id =10 or p2c.categories_id =11 or p2c.categories_id =12 or p2c.categories_id =13 or p2c.categories_id =14 or p2c.categories_id =15 or p2c.categories_id =16 or p2c.categories_id =17) order by flag_featured desc ]