Filtering database query with Data Store

Is it possible to filter a database query with a user id in the Data Store? I want to get all users back from the database that have an id in the data store. I tried “IN” passing the data store, but cannot get it to work. It works without the filter.