Fixes ambiguous 'deleted' column in get instances where clauses.