Table './admin_kwb@002dbd/SC_products' is marked as crashed and should be repaired
SELECT SQL_CALC_FOUND_ROWS p.*, IF(stockterm < 3 AND ordering_available > 0 AND Price > 0, 0, IF(ordering_available > 0 AND Price > 0, 2, 3)) AS main_sort, name_ru AS _name_sort FROM SC_products p WHERE (categoryID IN (1464)) AND ( enabled=1) ORDER BY main_sort, sort_order, add2cart_counter DESC, _name_sort ASC LIMIT 0,40