Which is the SQL generated from this? We have to make sure it is not returning all the records when you pass an empty array.