this is a bit brittle.... what happens if you change the default ordering of karma_points query results? Seems like you may as well do an aggregate sql sum here and assign the value that way.