Follow KDKA-TV: Facebook | Twitter

PITTSBURGH (AP) – A judge has been removed for the second time from the sentencing of a sex offender after an appeals court questioned her conduct.

READ MORE: Jury Gets Case Of Man Charged In Club Erotica Shooting That Killed 2, Injured 3

An opinion released Tuesday found Allegheny County Common Pleas Judge Donna Jo McDaniel sentenced a first-time offender to a six-to-17-year term when guidelines called for a maximum of three years.

It also noted McDaniel didn’t allow the man or his lawyer to speak at the sentencing hearing last year, and inappropriately criticized the lawyer.

READ MORE: 2 Businesses Shut Down By Allegheny County Health Department

In a case involving a different defendant, the Pittsburgh Post-Gazette reports McDaniel was ordered removed last month after the court found she demonstrated “bias and personal animus” against the defendant and the public defender’s office representing him.

McDaniel has been on the bench since 1985.

MORE NEWS: Bone Found In SUV Of Ohio Mom Stephanie Van Nguyen And 2 Kids Missing Since 2002

(Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)