Continuity mistake: At the end of the movie when Sandra Bullock character is in the hospital and the nurse revealed to her that Carl Lee was innocent, look carefully at the TV. You can see Jake, Harry Rex and Lucent standing outside the courthouse, but in the very next scene they haven't even left the courtroom.
Continuity mistake: The DA addresses Deputy Looney in court as "Detective". He is a uniformed deputy, not a detective. It would be surprising for a lawyer in court to make such a mistake.
Suggested correction: Looney is not in uniform at the time of the trial, though. It's not that he doesn't know his rank; he does refer to him as deputy when he is first called to the stand. As the district attorney, I'm sure he has likely needed to cross-examine many deputies and detectives. This is a simple character mistake: just a slip of the tongue, and a rather understandable one.