This does not work for statements with subqueries in the select list because then it replaces the `FROM` clause in the first subquery. See https://github.com/doctrine/dbal/pull/512