Database error in vBulletin 3.0.7:
Invalid SQL:
SELECT IF(votenum >= 1, votenum, 0) AS votenum, IF(votenum >= 1 AND votenum != 0, votetotal / votenum, 0) AS voteavg,
thread.threadid, thread.title, replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastposter, thread.lastpost, IF(views<=replycount, replycount+1, views) AS views, forumid, post.postid, pagetext, allowsmilie
, showsignature, usertextfield.signature
,thread.iconid AS threadiconid, iconpath AS threadiconpath
, avatarpath, NOT ISNULL(avatardata) AS hascustom, customavatar.dateline AS avatardateline, avatarrevision
, attachment.filename, attachment.filesize, attachment.visible, attachmentid, counter, thumbnail, LENGTH(thumbnail) AS thumbnailsize
FROM anarchystar_thread AS thread
LEFT JOIN anarchystar_post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN anarchystar_icon USING (iconid)
LEFT JOIN anarchystar_attachment AS attachment ON (post.postid = attachment.postid)
LEFT JOIN anarchystar_user AS user ON (user.userid = post.userid)
LEFT JOIN anarchystar_usertextfield AS usertextfield ON (post.userid = usertextfield.userid)
LEFT JOIN anarchystar_avatar as avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN anarchystar_customavatar as customavatar ON (customavatar.userid = user.userid)
LEFT JOIN anarchystar_deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE forumid IN(28) AND thread.visible = 1 AND thread.open != 10 AND deletionlog.primaryid IS NULL
GROUP BY post.postid
ORDER BY postdateline DESC
LIMIT 7
mysql error: Can't create/write to file '/tmp/#sql5cc7_413_1.MYI' (Errcode: 13)
mysql error number: 1