PDA

View Full Version : Database Error


Queensoul
06-06-2004, 01:50 AM
Hello:
I imported my phpbb board to vbulletin and only hack I've installed is this excellent VBA CMPS. A strange thing is happening though..anytime someone logs on my board, I get an email with this error
"Database error in vBulletin 3.0.1:

Invalid SQL:
SELECT

thread.threadid, thread.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, IF(views <= thread.replycount, thread.replycount+1, views) AS views, thread.lastposter, thread.lastpost, pollid
, thread.iconid AS threadiconid, iconpath AS threadiconpath
,thread.forumid, forum.title AS forumtitle
, post.pagetext AS preview

FROM thread as thread
LEFT JOIN icon USING (iconid)
LEFT JOIN forum AS forum ON (thread.forumid = forum.forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')

WHERE open <> '10' AND thread.visible = 1 AND thread.forumid NOT IN(4,10,36,5,11,12,13,14,15,23,34,28,30,32,3,24,25,29,31,6,16,17,18,19,33,7,20,2 1,22,8,26,27,35,9,37,38) Array AND deletionlog.primaryid IS NULL
ORDER BY lastpost DESC
LIMIT 7

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Array AND deletionlog.primaryid IS NULL
ORDER BY lastpost D

mysql error number: 1064"

I have posted this on vbulletin.com and it was suggested that it must be a hack. Well this is the only hack I've installed. I took it off and replaced the changed files and all was ok. Then i reinstalled VBA and then start getting this email messages again. I am new at VB and would hate to mess with files i dont know anything about. Do you recognize this sql and can you tell me what is causing the problem?
Your help is appreciated.

Brian
06-06-2004, 10:55 AM
Which version of vBa CMPS are you running? That looks like a bug from RC1. If you are running RC1, I would recommend upgrading to the latest version. If you are running the latest version, please submit a support ticket via the Members Area here so I can have a look.

Our Sponsors
 

Queensoul
06-06-2004, 02:34 PM
I am running vba_cmps 1.0 with VB3.01 as I downloaded it from here a few days ago . I will submit the trouble ticket nwo. Thanks.