Former Kentucky prosecutor Ronnie Goldy was convicted by a jury after he was found to have used his position to provide legal favors in exchange for sexual encounters and content.

Goldy, who formerly served as the commonwealth’s attorney for Bath, Rowan, Menifee and Montgomery counties, was convicted after being found to have used his position “to perform official actions, or to exert pressure and influence on other public officials to perform official actions,” that would benefit a woman he was having a sexual relationship with, the U.S. Attorney’s Office for the Eastern District of Kentucky said in a Feb. 3 news release.