SQL ERROR [ mysql4 ]

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 p.poster_id = u.user_id\x0A\x09\x09\x09AND p.post_id = pt.post_id\x0A\x09\x0' at line 4 [1064]


SELECT u.username, u.user_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid FROM blog_posts p, phpbb_users u, blog_posts_text pt WHERE p.topic_id = AND p.poster_id = u.user_id AND p.post_id = pt.post_id ORDER BY p.post_time DESC LIMIT 15

[Time : 0.018s | 9 Queries | Memory Usage: 1.53 MB, used cached content]