Fix parent sql objects for select statements used in the from clause as a subquery.