Cannot query the database.

select a.* from docs a where 1=1 order by a.showonhomepage, rand() limit 3

Error:
Incorrect key file for table 'C:\Windows\TEMP\#sql66c_551417_0.MYI'; try to repair it
Trace: (database.class.php:120)
(main.class.php:113)
(main.class.php:9293)
(manager.class.php:23)
(document.class.php:321)
(document.class.php:209)
(index.php:41)