2010-09-11, 10:40 PM
Hello, everyone.
I've been working on a myBB forum for quite some time now, without any errors...until today.
I clicked a forum under a category, and it displayed this error:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1054 - Unknown column 't.prefix' in 'on clause'
Query:
SELECT t.*, p.displaystyle AS threadprefix, (t.totalratings/t.numratings) AS averagerating, r.uid AS rated, t.username AS threadusername, u.username FROM mybb_threads t LEFT JOIN mybb_users u ON (u.uid = t.uid) LEFT JOIN mybb_threadratings r ON(r.tid=t.tid AND r.uid='2') LEFT JOIN mybb_threadprefixes p ON (p.pid = t.prefix) WHERE t.fid='6' AND (t.visible='1' OR t.visible='0') ORDER BY t.sticky DESC, t.lastpost desc LIMIT 0, 20
Anybody know why this is happening?
I've been working on a myBB forum for quite some time now, without any errors...until today.
I clicked a forum under a category, and it displayed this error:
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1054 - Unknown column 't.prefix' in 'on clause'
Query:
SELECT t.*, p.displaystyle AS threadprefix, (t.totalratings/t.numratings) AS averagerating, r.uid AS rated, t.username AS threadusername, u.username FROM mybb_threads t LEFT JOIN mybb_users u ON (u.uid = t.uid) LEFT JOIN mybb_threadratings r ON(r.tid=t.tid AND r.uid='2') LEFT JOIN mybb_threadprefixes p ON (p.pid = t.prefix) WHERE t.fid='6' AND (t.visible='1' OR t.visible='0') ORDER BY t.sticky DESC, t.lastpost desc LIMIT 0, 20
Anybody know why this is happening?