Query is now built in such way that it can get specific ids if requested
in the data-driven parameter.