Your code is absolutety fine.
IN
is like a bunch of X=Y
joined with OR
and is pretty fast in contemporary databases.
However, if your list of IDs is long, you could make the query a bit more efficient by passing a sub-query returning the list of IDs.