Pilot status on profile tpl

Hello,

I want the pilot status to be shown on the profile tpl. I copied the code from the pilot list tpl but it’s not working, the status is always “Active” although the real status is “Retired”. Is any way to set this?. Thanks.