lol and there is me complicating the issue....
You could try something like,
<?php echo PilotData::GetPilotCode($pilot->code)?>
Or something along those lines, I dont know if you can get the airline name, but you must be able to.
Ill have a dig in the docs