What about the query 

```sql
select * from foos where id in (?) or id in (?)
```