Sickboy
10-25-2005, 11:23 AM
Problem only arrises in the vbadvanced pages, not in the forums themselves, and ONLY when the NEWS module is enabled AND the news thread icons are enabled. If I disable them, the problem is gone (Logical ofcoarse, cause the error is about them :))
Database error in vBulletin 3.5.0:
Invalid SQL:
SELECT IF(votenum >= 1, votenum, 0) AS numbvote, IF(votenum >= 1 AND votenum != 0, votetotal / votenum, 0) AS voteavg,
thread.threadid, post.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastposter, thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, thread.forumid, post.postid, pagetext, allowsmilie, forum.title AS forumtitle
,thread.iconid AS threadiconid, iconpath AS threadiconpath
, NOT ISNULL(subscribethread.subscribethreadid) AS subscribed
FROM thread AS thread
LEFT JOIN forum AS forum USING (forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN icon USING (iconid)
LEFT JOIN subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = '1')
LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE thread.threadid IN(1111,1091,1081,1070,1065,1058)
GROUP BY post.postid
ORDER BY postdateline DESC
LIMIT 6;
MySQL Error : Column 'iconid' in from clause is ambiguous
Error Number : 1052
Date : Tuesday, October 25th 2005 @ 04:19:12 PM
Script : http://xxx.xxxxx.xx/default.php
Referrer :
IP Address : xx.xxx.xxx.xxx
Username : Sickboy
Classname : vB_Database_MySQLi
Database error in vBulletin 3.5.0:
Invalid SQL:
SELECT IF(votenum >= 1, votenum, 0) AS numbvote, IF(votenum >= 1 AND votenum != 0, votetotal / votenum, 0) AS voteavg,
thread.threadid, post.title, thread.replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastposter, thread.lastpost, IF(views<=thread.replycount, thread.replycount+1, views) AS views, thread.forumid, post.postid, pagetext, allowsmilie, forum.title AS forumtitle
,thread.iconid AS threadiconid, iconpath AS threadiconpath
, NOT ISNULL(subscribethread.subscribethreadid) AS subscribed
FROM thread AS thread
LEFT JOIN forum AS forum USING (forumid)
LEFT JOIN post AS post ON (post.postid = thread.firstpostid)
LEFT JOIN icon USING (iconid)
LEFT JOIN subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = '1')
LEFT JOIN deletionlog AS deletionlog ON (thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE thread.threadid IN(1111,1091,1081,1070,1065,1058)
GROUP BY post.postid
ORDER BY postdateline DESC
LIMIT 6;
MySQL Error : Column 'iconid' in from clause is ambiguous
Error Number : 1052
Date : Tuesday, October 25th 2005 @ 04:19:12 PM
Script : http://xxx.xxxxx.xx/default.php
Referrer :
IP Address : xx.xxx.xxx.xxx
Username : Sickboy
Classname : vB_Database_MySQLi