sql delete where id in another table