You might be mixing up the Lepsch case - which was bestiality only IIRC - and the Ephraim Ostermann one (see towards the end of this comment), which was indeed both, although it was complicated by the fact that one of the guys he had sex with died, and that it's a bit unclear on which grounds he actually got the death penalty (which was sword first, then burning the dead body, as per FW's addition to the verdict).
Re: Frat Boys of Versailles: The Actual Quotes