(126) Incorrect key file for table '/tmp/#sql_763a_0.MYI'; try to repair it
    SELECT 0 fake,gl.id as gid, gl.date, u.name, u.id, dbi.icon, dbi.name as item_name, gl.game_type
	FROM games_log gl
	LEFT JOIN user u ON gl.user_id=u.id AND gl.item_id
	LEFT JOIN db_items dbi ON dbi.id=gl.classid_instanceid
	WHERE gl.item_id  AND gl.date < '2018-07-21 23:58:52' - INTERVAL 5 second
UNION
	SELECT 1 fake, glf.id as gid, glf.date, fu.name, fu.id, dbi2.icon, dbi2.name as item_name, IF(glf.50x50,'50x50','case') game_type
	FROM fake_games_log glf
	LEFT JOIN fake_user fu ON glf.user_id=fu.id
	LEFT JOIN db_items dbi2 ON dbi2.id=glf.classid_instanceid
	WHERE  glf.date < '2018-07-21 23:58:52' - INTERVAL 5 second

ORDER BY date DESC
LIMIT 12