By default get_in_or_equal does not accept empty arrays as most database servers do not support the syntax "WHERE id IN ()".
There are two options here:
- Check whether you have anything in your array or not; or
- Pass an option for the "$onemptyitems" argument to get_in_or_equal.
I'd recommend option 1.