Fixed updateUserReputation()

The query was incorrect.