If the defendant is acquitted, or is unable to pay the costs, after due course of law has been had thereon, the state treasurer shall pay the witnesses and officer, upon the production of their certified accounts as provided in § 8-46-203.
T.C.A. § 8-46-205