Fixed #23758

- intentional breakage with recursion limit
- extents the alphabet ( to use multi letter ) for get alias prefix

executed from `test_subquery_condition` (queries.tests.Queries1Tests)
I'd avoid passing `ascii_uppercase` as an argument here and just use the sequence in the `prefix_gen` method.