PLA-460 changing query for getting redirected results