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 ( (p.productID IN (25546,25538,25535,25533,25534,25537,25542,25540,25701,25541,25544,25536,24747,24748,24745,25539)) OR (categoryID IN (1558)) ) AND ( enabled=1) ORDER BY main_sort, sort_order, add2cart_counter DESC, _name_sort ASC LIMIT 0,40