SQL-ERROR

This is the Core-Database class, responsible for database connections and communication between program and database.
I am sorry to inform you that I couldn't exec one of your statements, because it contains errors.
A SQL error has occured within the following SQL-Statement:

 Invalid SQL: SELECT a.*,   
										   DATE_FORMAT(gbk_posttime, '%d.%m.%Y %T' ) AS posttime,
										   e.*,
										   lin_linkurl,
										   lin_linkdesc,
										   lin_clickcounter,
	                                       ran_name,
										   ran_can_use_avatar,
										   ran_can_use_bbcodes,
										   ran_can_use_smilies,
										   ran_can_moderate_guestbook,
										   usr_username,
	                                       usr_specialrank,
										   usr_descent,
										   usr_email,
										   usr_linkid,
										   usr_icq,
										   usr_msn,
										   usr_avatarid,
	                                       usr_showemail,
	                                       usr_formmailer
									  FROM solid_guestbook a
										LEFT JOIN solid_links b
										  ON lin_linkid = gbk_linkid
										LEFT JOIN solid_users c
										  ON usr_userid = gbk_userid
										LEFT JOIN solid_ranks d
										  ON IF(
										   		gbk_userid = 0,
										   		ran_rankid = 1,
										  		ran_rankid = usr_rankid
										  	   )											
										LEFT JOIN solid_avatars e
										  ON ava_avatarid = usr_avatarid
									  ORDER BY
									  	  gbk_entryid DESC
									  LIMIT
									     0, 12
The mySQL-Server says: Incorrect key file for table '/tmp/mysql/#sql_465_3.MYI'; try to repair it
SQL error number: 126
SQL-Statements successfully executed before: 11 queries successfully executed
Defective Script: /home/dondrdbv/www.dondrago.de/modules/guestbook/showentries.php (on Line 114)
Error reported by: do_query of class Solid_Database

Referer:
Date: 27.05.2018 - 04:58

Please contact the Administrator.