: DB

SELECT CDSR.item_id, CDSR.lkey, CDSR.rkey, CDSR.sect_id, (CDSR.votes_summ/CDSR.total_votes) rating FROM cat_data_to_sect_rel CDSR LEFT JOIN cat_props CP ON CP.item_id = CDSR.item_id WHERE enabled AND lkey>=2 AND rkey<=29 GROUP BY CDSR.item_id ORDER BY CDSR.ord LIMIT 40,10
Got error 122 from storage engine