/

PHP:
                       DELETE FROM `postWHERE `post`.`userid` = 0;
 
DELETE FROM `threadWHERE `thread`.`postuserid` = 0
( )