Fix joinedload + of_type() + and_() invalid SQL for subclass columns
Fixed issue where using :func:`_orm.joinedload` with
:meth:`.PropComparator.of_type` targeting a joined-table subclass combined
with :meth:`.PropComparator.and_` referencing a column on that subclass
would generate invalid SQL, where the subclass column was not adapted to
the subquery alias. Pull request courtesy Joaquin Hui Gomez.
Fixes #13203
Closes: #13206
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/13206
Pull-request-sha:
ba55b0c3e2a8dae28a1c7d7ae646e3480a04425c
Change-Id: I78fe4672649d1d5498e3bc653e5d943ccb55dafd