PDA

View Full Version : Need help to fix Database error


nomoreturn
08-11-2010, 09:20 PM
Hello every one i got database error and last 2 days i'm looking into it i cant figure it out from which product i got this error plz help me to fix this

Database error in vBulletin 4.0.5:

Invalid SQL:

SELECT
IF(votenum >= 1, votenum, 0) AS votenum,
IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
post.pagetext AS thumb,
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




, usergrouphasann.opentag as opentaghasann, usergrouphasann.closetag AS closetaghasann, usergrouphuseyinn.opentag AS opentaghuseyinn, usergrouphuseyinn.closetag AS closetaghuseyinn
FROM vb_thread AS thread
LEFT JOIN vb_user AS user ON (user.userid = thread.lastposterid)
LEFT JOIN vb_userlist AS userlist ON (userlist.relationid = user.userid AND userlist.type = 'buddy' AND userlist.userid = 0)






LEFT JOIN vb_user AS userhasann ON ( userhasann.userid = thread.postuserid ) LEFT JOIN vb_usergroup AS usergrouphasann ON ( usergrouphasann.usergroupid = userhasann.usergroupid ) LEFT JOIN vb_user AS userhuseyinn ON ( userhuseyinn.userid = thread.lastposterid ) LEFT JOIN vb_usergroup AS usergrouphuseyinn ON ( usergrouphuseyinn.usergroupid = userhuseyinn.usergroupid )
WHERE thread.threadid IN (0,254,1689)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Unknown column 'post.pagetext' in 'field list'
Error Number : 1054
Request Date : Wednesday, August 11th 2010 @ 05:54:42 PM
Error Date : Wednesday, August 11th 2010 @ 05:54:42 PM
Script : http://www.mastdunya.com/forumdisplay.php?f=71&page=4
Referrer :
IP Address : *6.**.*5.*12
Username : Unregistered
Classname : vB_Database
MySQL Version :

Videx
08-11-2010, 11:59 PM
It certainly does look like an add-on. Something to do with polls and voting? Anyway, disable all of them and re-enable them one by one until you find the culprit.

Haltech
08-12-2010, 04:22 AM
Yeah thats def a mod with something to do with voting.

When was the last time you optimized and repaired your database tables? I would r/o the db then turn that hack off that pertains to voting/polls.

nomoreturn
08-13-2010, 12:42 AM
Thanks Every one for helping . i fixed it, it was Thread Thumb Images vb4 add on .