DB Error: Bad SQL Query: select count(*) from aey_forums_posts p, aey_forums_topics t, aey_forums f, aey_forums_categories c WHERE t.tid = p.topic_id and f.id = t.forum_id AND f.category=c.id AND p.author_id = AND t.approved = 1 ORDER BY p.pid DESC
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND t.approved = 1 ORDER BY p.pid DESC' at line 2
Query Error