Fix issue with using $in on a relation query.