Bell's sentencing has now been set for July 12, prosecutors said.

(CNN) — Actor Drake Bell, best known for the Nickelodeon sitcom “Drake & Josh,” pleaded guilty Wednesday to charges of attempted endangering of children and disseminating matter harmful to juveniles, according to the Cuyahoga County Prosecutor’s Office in Ohio.

Bell previously had pleaded not guilty. The charges stemmed from incidents in Cleveland in 2017, court records show.

READ MORE: FBI: Dayton Mass Shooter Connor Betts Fantasized About Killing For Years Before 2019 Attack

“All questions will be answered at sentencing, including why Mr. Bell chose to enter today’s plea,” Bell’s attorney, Ian N. Friedman, told CNN in a statement on Wednesday.

According to an earlier statement from prosecutors, a 15-year-old victim filed a report with her local police department in Canada in 2018 about an incident that allegedly took place between her and Bell the previous year at a Cleveland nightclub.

READ MORE: Labor Secretary Marty Walsh Says Build Back Better Will Help Retrain Workers For Pittsburgh's Jobs Of The Future

Canadian authorities contacted the Cleveland Division of Police, which investigated, the statement said. That investigation revealed that the victim, who had established a relationship with Bell several years prior, attended his concert in December 2017. While at the concert, Bell “violated his duty of care and, in doing so, created a risk of harm to the victim” the prosecutor’s office said. The investigation also revealed that in the months leading up to the concert, Bell had sent the victim inappropriate social media messages.

Bell’s sentencing has now been set for July 12, prosecutors said.

MORE NEWS: State Lawmaker Has Plan To Collect $104 Million In Lost Turnpike Revenue

The-CNN-Wire
™ & © 2021 Cable News Network, Inc., a WarnerMedia Company. All rights reserved.