Section 61. A sheriff, deputy sheriff or other officer who takes the certificates of witnesses in criminal cases shall not purchase or discount or have any interest in orders drawn or demands upon the treasury by such witnesses.