If an action under this article is maintained by the state alone and judgment is for the defendant or the defendant is insolvent, the witnesses are paid as in other state cases, but if any person is joined with the state as informant, judgment must be entered against him for the costs if entered for the defendant.
Ala. Code § 6-6-601 (1975)