fix IN subquery error
formatting