ROCHESTER, N.Y. — ​Tyquan Rivera is going back to prison for an expected 15 year sentence with three years of post-release supervision.

The 27-year-old pleaded guilty to criminal sale of a controlled substance.

"Tyquan Rivera has put this community in danger time and time again," said Assistant District Attorney Matthew Schwartz. "I want to thank the New York State Police and the Rochester Police Department for their investigation that led to the arrest of and ultimate plea by Tyquan Rivera. Rivera will now spend 15 years in the New York State Department of Corrections, instead of promoting deadly and illegal narcotics in our community."

Rivera was arrested nearly two years ago for selling fentanyl to an undercover trooper.

"Tyquan Rivera has a menacing history in this community that promotes violence and dangerous narcotics," said Monroe County District Attorney Sandra Doorley. "The Monroe County District Attorney’s Office is pleased that he has accepted responsibility for his actions and will spend the next 15 years in the New York State Department of Corrections."

Fifteen years is more than twice the amount of time he was sentenced to 13 years ago when Rivera shot Rochester Police Officer Anthony Diponzio. Officer Diponzio survived the shooting.

Rivera will be sentenced on Tuesday, October 12.