2009-12-27, 12:56 AM
Hiājust now my forum has begun giving the following error:
The error shows up whenever we click on any link other than the main index page. When I try to go to the User CP or anything else I get similar errors, but with different lines for the Query.
User CP:
Query:
SELECT COUNT(*) AS draftcount FROM mybb_posts WHERE visible='-2' AND uid='1'
Mod CP:
Query:
SELECT COUNT(aid) AS unapprovedattachments FROM mybb_attachments a LEFT JOIN mybb_posts p ON (p.pid=a.pid) LEFT JOIN mybb_threads t ON (t.tid=p.tid) WHERE a.visible='0'
etc...
I haven't touched my databases or anything like that. What is causing this problem and how can I fix it? Thanks.
okay, a friend helped me repair the problem for the time being. thanks.
The error shows up whenever we click on any link other than the main index page. When I try to go to the User CP or anything else I get similar errors, but with different lines for the Query.
User CP:
Query:
SELECT COUNT(*) AS draftcount FROM mybb_posts WHERE visible='-2' AND uid='1'
Mod CP:
Query:
SELECT COUNT(aid) AS unapprovedattachments FROM mybb_attachments a LEFT JOIN mybb_posts p ON (p.pid=a.pid) LEFT JOIN mybb_threads t ON (t.tid=p.tid) WHERE a.visible='0'
etc...
I haven't touched my databases or anything like that. What is causing this problem and how can I fix it? Thanks.
okay, a friend helped me repair the problem for the time being. thanks.