Douglass High School’s Patrick McKaufman throws a pass against Locust Grove during their high school football playoff game in Oklahoma City. (Bryan Terry/AP/The Oklahoman)

Equal parts “Friday Night Lights” and “Law and Order,” the tale of one Oklahoma high school football team’s unsuccessful playoff quest was anything but dull.

The drama started on the field Nov. 28, when Douglass and Locust Grove met in a quarterfinal of the Class 3A high school football playoffs. Locust Grove led, 20-19, with 64 seconds to play. In a dramatic come-from-behind effort, Douglass scored and the fans went wild. The underdog Trojans looked like they were about to beat the top-ranked, undefeated Pirates.

But the celebration was cut short.

A referee flagged Douglass for a sideline infraction penalty, erasing the go-ahead touchdown. The game ended and Locust Grove was declared the victor.

Douglass didn’t accept the loss, however, because the penalty wasn’t properly enforced. It should have been applied to the kickoff after the touchdown, but instead the referee applied it to the previous spot of the ball. The referee who made the call even admitted that he had gotten it wrong, according to school district officials.

Douglass and the Oklahoma City Public School District (OKCPS) protested to the Oklahoma Secondary School Activities Association, but the appeal was denied, so Coach Willis Alexander and the district took the case from the locker room to the courthouse. They filed a temporary injunction, asking a judge to rule that all or part of the game be replayed.

The drama came to an end on Thursday, though, when Oklahoma County District Court Judge Bernard M. Jones denied the request, effectively ending Douglass’s playoff hopes.

“There is neither clear nor convincing evidence supporting the granting of injunctive relief,” Jones ruled (via NewsOK.com) on Thursday morning, upsetting Douglass’s players and fans and surprising the school district.

“The Oklahoma Secondary Schools Athletic Association (OSSAA) game official admittedly applied the wrong penalty and OKCPS followed the proper legal process to request the wrong be made right. Unfortunately, the outcome of the hearing did not produce the results we hoped for,” the district said in a statement on Thursday. An official later told reporter Scott Wright of the Oklahoman that the school district would not pursue the case further.

District officials are hoping to be able to learn from what happened in order to prevent such cases from happening again in the future.

“The judge’s decision presents an opportunity for the OSSAA to review and address the processes and procedures that effect every student athlete in Oklahoma,” the District said in a statement. “We hope to work with the OSSAA and identify solutions for the future to make sure the incident that occurred during the Douglass versus Locust Grove playoff game doesn’t happen to other student athletes in Oklahoma.”

State Sen. David Holt, who represents the 30th District of Oklahoma, might have the final word, however. He took to Twitter to add a three-part postscript to the whole episode.