Update to use filter instead of where

Will assume that the fields are CSV, like the previous code is (however, I'm not sure if this assumption is correct. It should work with single IDs, but consider simplifying the code if they're only ever single IDs)
Merge pull request #24 from ss23/patch-2

Update to use filter instead of where