Deputy Otis - S2-E31
Other mistake: Upon arriving at the courthouse, Andy and Barney discover they don't have their keys to get in so Andy decides to go knock on the window at Otis' cell, which he does to wake Otis. However, Otis' cell does not have a window, only the adjoining cell does. (00:20:00)
Suggested correction: Otis' cell does have a window. In the previous episode with Barney's cousin, Barney's pulls the window out of the wall to get Otis out. Also in another episode Barney gets an intercom and places one part by the window to demonstrate how it would work.
It has a window but no glass. It shows Andy knocking on the window to wake Otis up but then it shows him hanging on the bars.