SQL
SELECT * FROM ibf_topics LEFT JOIN ibf_posts ON ibf_topics.tid=ibf_posts.topic_id WHERE ibf_posts.pid IS NULL
gets me all the topics without posts on my board.But running
SQL
DELETE FROM ibf_topics LEFT JOIN ibf_posts ON ibf_topics.tid=ibf_posts.topic_id WHERE ibf_posts.pid IS NULL
gives me the following error:
QUOTE
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 'LEFT JOIN ibf_posts ON ibf_topics.tid=ibf_posts.topic_id WHERE
How can I delete those rows?
