Actually, it seems like the problem is in the handling of the WHERE clause within a subquery that uses a correlation.