New York Judiciary Law
Sec.
§
16
Judge Prohibited From Practicing Law in His Court
A judge shall not practice or act as an attorney or counsellor in a court of which he is, or is entitled to act as a member, or in an action, claim, matter, motion or proceeding originating in that court.