OKLAHOMA CITY (AP) — An Oklahoma woman was sentenced to more than 17 years in prison after she pleaded guilty to a murder charge for leaving her 5-year-old grandson to die inside a hot car while she gambled at a casino.

Alanna Jean Orr, 50, was sentenced Thursday to 210 months in federal prison, U.S. Attorney Timothy J. Downing said. According to court records, Orr was caring for her grandson on June 21, 2018, when she went to a casino in Harrah, about 20 miles (32 kilometers) east of Oklahoma City.

Authorities said Orr left the boy inside her car for six hours as temperatures reached 90 degrees Fahrenheit (32 degrees Celsius.)

Orr pleaded guilty last year to second-degree murder by child neglect in Indian Country. She had faced up to life in prison.