I forgot to escape a percent sign in one of the query format strings