No person confined in jail must, on any pretext whatever, be furnished with or allowed to receive any spirituous, malt or vinous liquors except on the written order of a physician, stating that such liquor is necessary for his health. Any jailer, sheriff, deputy or other person who violates this section shall be guilty of a misdemeanor.