yo hago eso ultimo k dices y me da error:
Database error in vBulletin 3.5.1:
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 vbthread AS thread
LEFT JOIN vbforum AS forum USING (forumid)
LEFT JOIN vbpost AS post ON (post.postid = thread.firstpostid)
LEFT JOIN vbicon USING (iconid)
LEFT JOIN vbuser AS user ON (user.userid = post.userid)
LEFT JOIN vbavatar as avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN vbcustomavatar as customavatar ON (customavatar.userid = user.userid)
LEFT JOIN vbsubscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = '1')
LEFT JOIN vbdeletionlog 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 10;
MySQL Error : Column 'iconid' in from clause is ambiguous
Error Number : 1052
Date : Friday, January 13th 2006 @ 06:42:28 PM