Error 1054 when logged in as myself.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Briggsy
    Member
    • Dec 2005
    • 47
    • 3.5.x

    Error 1054 when logged in as myself.

    Hi guys,

    I'm the administrator of my forums, and they appear to work fine until I log in as myself - then when I visit parts of my forum, I get the following message:

    Database error in vBulletin 3.5.3:
    Invalid SQL:
    SELECT
    IF(votenum >= 1, votenum, 0) AS votenum,
    IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
    post.pagetext AS preview,
    thread.threadid, thread.title AS threadtitle, thread.forumid, pollid, open, replycount, postusername, postuserid, thread.iconid AS threadiconid,
    thread.lastpost, lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, notes, thread.visible, sticky, votetotal, thread.attach,
    hiddencount
    , NOT ISNULL(subscribethread.subscribethreadid) AS issubscribed
    , deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason

    FROM thread AS thread
    LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
    LEFT JOIN subscribethread AS subscribethread ON(subscribethread.threadid = thread.threadid AND subscribethread.userid = 1 AND canview = 1)

    LEFT JOIN post AS post ON(post.postid = thread.firstpostid)


    WHERE thread.threadid IN (0,11)
    ORDER BY sticky DESC, thread.lastpost DESC;
    MySQL Error : Unknown column 'canview' in 'on clause'
    Error Number : 1054
    Date : Thursday, April 6th 2006 @ 04:58:47 PM


    Does anyone know what is causing this issue please and how I can cure it?

    I'm not sure if any other forums users are experiencing the same problem. I've only just put my site back online today after moving it to a new host
    Last edited by Briggsy; Thu 6 Apr '06, 4:19pm.
  • Scott MacVicar
    Former vBulletin Developer
    • Dec 2000
    • 13286

    #2
    Running 3.5.4 files with a 3.5.3 database, run the upgrade script.

    Scott MacVicar

    My Blog | Twitter

    Comment

    • Briggsy
      Member
      • Dec 2005
      • 47
      • 3.5.x

      #3
      Thanks mate. That was an ultra quick response!!

      Comment

      • Scott MacVicar
        Former vBulletin Developer
        • Dec 2000
        • 13286

        #4
        Slow compared to Steve

        Is everything fixed now?
        Scott MacVicar

        My Blog | Twitter

        Comment

        • Briggsy
          Member
          • Dec 2005
          • 47
          • 3.5.x

          #5
          It certainly is made. You replied within a matter of seconds, and then I followed your advice and cured the problem straight away.

          I went from wetting myself with worry, to curing the problem in minutes LOL!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...