allow for multiple queries using arrays

This allows us to query the same item with multiple attributes (e.g. tags).