ROCKLIN (CBS13) – A former Whitney High School teacher pleaded guilty to having an inappropriate sexual relationship with a student.

On Wednesday, 33-year-old Matthew Scott Yamamoto pleaded guilty to four felony counts in connection to his arrest last September.

READ MORE: Controversial New Report Says No Amount Of Alcohol Is Good For The Heart

As part of the agreement, Yamamoto pleaded no contest to oral copulation with a minor, attempted sexual intercourse with a minor and sexual penetration on a minor. He also pleaded guilty to one felony count of conspiracy to obstructing justice.

READ MORE: Study: States With Weaker Gun Laws Have Higher Rates Of Firearm Related Homicides, Suicides

Several related misdemeanor counts were also dismissed. However, the facts leading to those charges can be used in consideration of his sentencing.

Yamamoto faces a maximum of five years in state prison, and may be required to register as a sex offender.

MORE NEWS: Oregon Man Arrested By Authorities After Chase Starting In Placer County

Sentencing is scheduled for November 19 in Placer County Superior Court.