Use ANY VALUES instead of ID IN() to speed up Postgres

Another optimization for large ID IN queries.. plz review @ericnewcomer 
Since values(..) is doing a group by, I don't think you need set(..) here.