Witnesses before a special inquiry judge and in criminal cases in the magistrate division of district court, and witnesses in a coroner's inquest, are entitled to the same fees and mileage as provided in section 19-3008, Idaho Code, for witnesses in criminal proceedings in the district court, which must be paid out of the county treasury; provided, however, that when the state or the defendant requires the attendance of more than three (3) witnesses in its or his behalf, before such witnesses shall be subpoenaed at the county expense, or their fees and mileages be a charge against the county, the county attorney or defendant must make affidavit setting forth that they are witnesses whose evidence is material for the state or the defense, and the facts showing such materiality, and that it or he cannot safely go to trial without them. In such case or cases, the court or judge thereof, at the time the application is made therefor, shall order a subpoena to issue to such of said witnesses as the court or judge thereof may deem material for the state or defendant, and the costs incurred by the process, and the fees and mileage of such witnesses, shall be paid in the same manner that the costs and fees of other witnesses are paid. Jurors in a coroner's inquest are entitled to the mileage and per diem payments as provided for jurors in section 2-215, Idaho Code.
Idaho Code § 19-3945