Thanks for your help dallr, the code is working great :D Just one thing, when requesting the top 'n' points if there are duplicate points values then the query also accumulates these values.
ie. if requesting the top 5 points from a member and his scores are 40,40,39,38,38,38,36, Then his...