: 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 320,10
Incorrect key file for table '/tmp/#sql_87e4_0.MYI'; try to repair it