Incorrect key file for table '/tmp/#sql_ae3_0.MYI'; try to repair it SQL=SELECT c.*, i.catid, i.title, i.alias, category.alias as catalias, category.name as categoryname FROM j3_k2_comments as c LEFT JOIN j3_k2_items as i ON i.id=c.itemID LEFT JOIN j3_k2_categories as category ON category.id=i.catid WHERE i.published=1 AND ( i.publish_up = '0000-00-00 00:00:00' OR i.publish_up <= '2016-07-25 21:54:12' ) AND ( i.publish_down = '0000-00-00 00:00:00' OR i.publish_down >= '2016-07-25 21:54:12' ) AND i.trash=0 AND i.access IN(1,1,5) AND category.published=1 AND category.trash=0 AND category.access IN(1,1,5) AND c.published=1 ORDER BY c.commentDate DESC LIMIT 0, 3