Database error in vBulletin 4.0.7:
Invalid SQL:
SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS preview,
thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, postusername, postuserid, thread.iconid AS threadiconid,
thread.dateline, notes, thread.visible, sticky, votetotal, thread.attach, thread.lastpost, thread.lastposter, thread.lastposterid, thread.lastpostid, thread.replycount, IF(thread.views<=thread.replycount, thread.replycount+1, thread.views) AS views,
thread.prefixid, thread.taglist, hiddencount, deletedcount,
user.usergroupid, user.homepage, user.options AS useroptions, IF(userlist.friend = 'yes', 1, 0) AS isfriend
, NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
, threadread.readtime AS threadread
, threadredirect.expires
, attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid , thread.thumbnailurl AS thumbnailurl
FROM thread AS thread
LEFT JOIN user AS user ON (user.userid = thread.lastposterid)
LEFT JOIN userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 1)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND deletionlog.type = 'thread')
LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)
LEFT JOIN threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 1)
LEFT JOIN post AS post ON(post.postid = thread.firstpostid)
LEFT JOIN threadredirect AS threadredirect ON(thread.open = 10 AND thread.threadid = threadredirect.threadid)
LEFT JOIN attachment as attachment ON(attachment.postid = thread.firstpostid)
WHERE thread.threadid IN (0,23210,31961,27757,22315,25230,23231,32522,32523 ,23115,24174,25080,21699,20116,22944,21646,20052,1 8701) GROUP BY thread.threadid
ORDER BY sticky DESC, lastpost DESC;
MySQL Error : Unknown column 'attachment.thumbnail_filesize' in 'field list'
Error Number : 1054
Request Date : Monday, September 27th 2010 @ 04:40:07 AM
Error Date : Monday, September 27th 2010 @ 04:40:08 AM
Script :
http://www.universodivx.net/forumdis...as-(17-122)VSa
Referrer :
http://www.universodivx.net/foro.php
IP Address : xxx
Username : marianoblesa
Classname : vB_Database
MySQL Version : 5.0.91-enterprise-gpl-log