tidy up vote counting
select the max value for voted fields