What's wrong with this query?

There's nothing wrong with the queryIt isn't using the table aliases when accessing columns in the condition

There's nothing wrong with the query.