avoid horrendous query, i.e. hardcoding a lot of ids in the query