If you have a large amount of users, the best solution should be to generate the ladder on a timely basis (cron) into another Mysql table. I think it is an easy query usually.
That table should contain only the username and the rung column with an index for username, so it could be handled very fastly.
--
tune