fix IN subquery error