An attorney is one who gives others advice about the law.
The attorney appeared in front of the judge for me.
Example picture