Fix nested Eloquent queries and softdeletes

Fixes #3403, possibly #3308

Currently the nested query builder will also have the soft delete "where", causing each nested where clause to have the same `where table.deleted_at is null`.