Bz1073925: Add numbers after question marks in the query to fix deprecation errors for positional parameters