PDA


View Full Version : Problem after installed


meolun
01-22-2006, 04:47 PM
Database error in vBulletin 3.5.3:

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
, avatarpath, NOT ISNULL(filedata) AS hascustom, customavatar.dateline AS avatardateline, avatarrevision
, 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 user AS user ON (user.userid = post.userid)



LEFT JOIN avatar as avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN customavatar as customavatar ON (customavatar.userid = user.userid)

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(1)

GROUP BY post.postid
ORDER BY sticky DESC,thread.dateline DESC
LIMIT 5;

MySQL Error : Column 'iconid' in from clause is ambiguous
Error Number : 1052
Date : Monday, January 23rd 2006 @ 03:41:35 AM
Script : http://localhost/test.php
Referrer :
IP Address : 127.0.0.1
Username : admin
Classname : vB_Database

what is it? someone meet this problem before?

Brian
01-23-2006, 03:01 AM
http://www.vbadvanced.com/forum/showthread.php?t=12197