select idrank, idvalue, alias
from Cts_ranks, Id2alias
where idvalue = cryptokey and mapid = ?
order by idrank

-- get registered/aliased players who have played on 
-- the specified map.