If you cannot change your tables, you can do a Left Join (which, if possible, will join your deleted_table ), and then check that id Null (meaning no rows were found).
Select everything_you_need From post_table p Left Join delete_table d On ( d.id = p.id ) Where d.id Is Null;
Make sure there are indexes for id -columns for best performance.
source share