My host just upgraded to PHP 5 and I'm getting this error.
along with this
I removed the bit of code from my include file and the Warning: unserialize error went away, but the other part is still there.
Database error in vBulletin 3.5.0:
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(7019,6215)
GROUP BY post.postid
ORDER BY sticky DESC,thread.dateline DESC
MySQL Error : Column 'iconid' in from clause is ambiguous
Error Number : 1052
Date : Wednesday, July 16th 2008 @ 04:46:47 PM
Script : http://www.caraudiocentral.net/?
Referrer : http://www.caraudiocentral.net/forums/
IP Address : 220.127.116.11
Username : Chris from Washington
Classname : vB_Database
The rest of the forum works fine, just the portal doesn't work.
I'm running VB 3.5