I want to delete all the records returned from this query:
Code:
Select * FROM fbb_posts a LEFT JOIN fbb_users b ON (a.user_id = b.user_id) where (b.user_id IS NULL) and a.post_id >= 685644
Simply
Code:
Delete FROM fbb_posts a LEFT JOIN fbb_users b ON (a.user_id = b.user_id) where (b.user_id IS NULL) and a.post_id >= 685644
does not work syntactically.
How can I pull this off? I'm trying to delete all the spam that has shown up this month. I've deleted all the spam accounts so there is no user_id attached to these posts anymore.