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 parent_id = 0' at line 1 SELECT * FROM forum_posts WHERE topic_id = and parent_id = 0
[error string missing]
SELECT * FROM forum_posts WHERE topic_id = AND parent_id = LIMIT 0, 15