Mary Jahn, 53, entered the plea just before opening statements were set to take place in her trial.

Jahn faces three years in state prison and lifetime registration as a sex offender as part of a plea deal with prosecutors, Deputy District Attorney Troy Davis said. Jahn is scheduled to be sentenced Nov. 30.

As part of the deal, eight other charges were dismissed. Jahn also faced four counts of sexual penetration by foreign object, two other counts of lewd acts on a child and two counts of oral copulation of a person under 18.

Prosecutors said the sexual relationship lasted from July 2008 through July 2011. During that time, Jahn introduced sexual acts that included bondage, flogging and hot wax, the former student testified at the preliminary hearing.

Jahn was also accused of carving her initials in the student’s hip.

All of the alleged incidents occurred at Jahn’s Long Beach home, Davis said.

The student, now 25, came forward and reported the abuse to officials in 2017. Prosecutors filed charges against Jahn in September 2017.

Deputy District Attorney Troy Davis said Jahn is no longer a teacher at Lakewood High School. She taught English at the school from 2006 until she was placed on leave in 2017.

Nathan covers crime and public safety for the Daily Breeze. Prior to joining the coverage team in the South Bay, Nathan worked for the Orange County Register, where he covered south Orange County cities and community sports. A freelance play-by-play broadcaster, Nathan can be heard calling high school baseball and community college football games during the spring on his days off.