I have not tried this myself, but there is "<lt>,<lasttarget>" which "Displays the name of your last target when no target is currently selected. Displays the name of your previous target when a target is selected." There is also "<le>,<lastenemy>" and "<la>,<lastattacker>."