Bug fix: Query and param with many occurrences.

If a prepared query has many occurrences of the same parameter, the
value was only replaced at the first occurrence.