Second attempt at fixing the parent of a select statement used as a subquery in the from clause.