Make queries with an empty ID set constraint returns an empty result set