Incorrect key file for table '/tmp/#sql_4cd8_0.MYI'; try to repair it SQL=SELECT a.id, a.title, a.alias, a.introtext, a.`fulltext`, a.catid, a.state, a.access, a.created, a.created_by, a.created_by_alias, a.modified, a.featured, a.language, a.hits, a.publish_up, a.publish_down, a.images, a.urls, a.language, a.metakey, a.metadesc, a.metadata,c.title AS category_title, c.alias AS category_alias,ua.name AS author_name,um.name AS last_modified_by,ROUND(v.rating_sum / v.rating_count, 0) AS rating, v.rating_count as rating_count,vl.title AS access_title,l.title AS language_title
FROM #__content as a
LEFT JOIN #__categories AS c ON c.id = a.catid
LEFT JOIN #__users AS ua ON ua.id = a.created_by
LEFT JOIN #__users AS um ON um.id = a.modified_by
LEFT JOIN #__content_rating AS v ON a.id = v.content_id
LEFT JOIN #__viewlevels AS vl ON a.access = vl.id
LEFT JOIN #__languages AS l ON a.language = l.lang_code
LEFT JOIN #__contentitem_tag_map AS ct ON ct.content_item_id = a.id
LEFT JOIN #__tags AS t ON t.id = ct.tag_id
WHERE ((a.access IN(1,1,5) AND (a.state = 1 or a.state = 2) AND (a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2024-04-24 11:34:08') AND (a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2024-04-24 11:34:08') AND (a.state != -2)) AND a.catid IN (13,12))
GROUP BY id
ORDER BY a.created DESC