When a defendant charged with a criminal offense shall be committed to jail by a court, judge, justice or other officer, for default in not giving bail, it is the duty of such court or officer to state in the mittimus the nature of the offense, the county where committed, the amount of bail, and number of sureties required, and to direct the sheriff of the county where such party is ordered to be confined to release him, on his entering into bond as required by the order of the court or committing officer; and this shall apply to a case where, on habeas corpus, an order for bail may be made.
Miss. Code § 99-5-31