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