Error!

MySQL Error: Incorrect key file for table '/var/lib/mysqltmp/#sql_86ac_161.MYI'; try to repair it
SQL Statement: SELECT contents.id,contents.title,contents.content_type_id,contents.primary_image,contents.author_name,contents.slug,contents.summary,contents.primary_issue_slug,contents.publish_date,contents.body FROM contents JOIN content_taxonomy on contents.id = content_taxonomy.content_id WHERE contents.published=1 and publish_date <= '2021-07-29 16:00:00' and contents.magazine_id = '6' and ( contents.id != '244988') and contents.content_type_id = 2487 group by contents.id ORDER BY publish_date desc LIMIT 0, 15