Making nested where query not exclude deleted because this has been already accounted for in the query