Receive the latest national-international updates in your inbox

An Idaho judge has ordered a 19-year-old man not to have sex with anyone before he marries as part of his sentencing for statutory rape of a 14-year-old girl.

Judge Randy Stoker sentenced Cody Duane Scott Herrera of Twin Falls to five to 15 years in prison, but he suspended the sentence for a one-year rider program. If the unmarried Herrera completes the program, he'll be released on probation, which requires celibacy unless he weds. Herrera received the sentence in 5th District Court.

Stoker said the probation condition is needed because Herrera told presentence investigators he's had 34 sexual partners. "If you're ever on probation with this court, a condition of that will be you will not have sexual relations with anyone except who you're married to, if you're married," Stoker told Herrera.

Herrera in March pleaded guilty to statutory rape of the 14-year-old girl. "It was his intent from the beginning to take what he wanted from my 14-year-old child — her virginity," the victim's mother told the court.