A witness disobeying a subpoena issued on the part of the defendant in a criminal action, unless the witness shows good cause for the witness's nonattendance, is liable to the defendant in the sum of fifty dollars, which may be recovered in a civil action.
N.D.C.C. § 31-03-15