Fix issue with postgres::queryWhere()

When two or more params were specified, and only one
value to be updated, there was a case where the parameters
were not being reordered correctly.

This caused the undesired behavior of the records not
being updated when they should.

This issue has been fixed.