PDA

View Full Version : keep getting a SQL error , Why?


VBUsers
02-26-2007, 05:16 PM
hey VB,

i keep getting this SQL error on one of my forums and dont know why. its up to date on 3.6.4 and no matter what i do i keep getting the emails.

Database error in vBulletin 3.6.4:

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 AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
thread.lastpost, thread.lastposter, thread.lastpostid, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
hiddencount, deletedcount




,post.pagetext
FROM geekscor_thread AS thread







WHERE thread.threadid IN (0)
ORDER BY sticky DESC, lastpost DESC;

MySQL Error : Unknown column 'post.pagetext' in 'field list'
Error Number : 1054
Date : Monday, February 26th 2007 @ 08:33:03 AM
Script : http://www.geekscore.com/forumdisplay.php?f=5
Referrer :
IP Address : 000000000000
Username : Unregistered
Classname : vB_Database

Princeton
02-26-2007, 09:37 PM
",post.pagetext" shouldn't be in the query

most likely added by a plugin...
I suggest removing said plugin and contact author of plugin.

VBUsers
02-28-2007, 06:38 PM
",post.pagetext" shouldn't be in the query

most likely added by a plugin...
I suggest removing said plugin and contact author of plugin.

great ill check which one it is and remove it. thank you