MCKEESPORT, Pa. (AP) — A newly elected city councilman has been barred from taking office because of a drug conviction from 23 years ago.

McKeesport Councilman-elect Corey Sanders pleaded no contest to two felony drug counts in 1993 and was sentenced to four years in prison. The Democrat was elected to the City Council in November but was prevented from being sworn in with colleagues on Monday night.

Kevin Francis McCarthy, Allegheny County assistant district attorney, said in a letter to McKeesport Mayor Michael Cherepko that Sanders' conviction makes him "constitutionally ineligible to hold public office."

McCarthy's office said Sanders will need a full pardon from Democratic Gov. Tom Wolf to be able to hold public office. Sanders has already hired a lawyer and petitioned the governor for a pardon, according to city Solicitor Jason Elash.

Wolf's office noted that the governor has no constitutional authority to issue pardons without a written recommendation from the board of pardons.

Councilwoman Fawn Walker-Montgomery came to Sanders' defense, saying other members should have been subjected to the same legal technicalities being applied to Sanders.

Elash has been convicted of driving-under-the-influence charges but still serves in public office, WTAE-TV reported.

Community members said Sanders has turned his life around and mentored young men to stay out of trouble.

John Fetterman, mayor of the nearby borough of Braddock and a candidate for the Democratic nomination for U.S. Senate, released a statement Tuesday calling on Wolf to issue a pardon to Sanders. He said a drug conviction shouldn't "banish one for life from participating in our democracy."

Sanders said he will continue to show up at meetings. The district attorney's office said it will petition for Sanders' removal should he take office as a councilman.