Bz1073925: Add numbers after question marks in the query to fix deprecat...

...ion errors for positional parameters