Any person found in possession of a drug or medicine limited by law to dispensation by a prescription, unless such drug or medicine was lawfully dispensed, shall be guilty of a misdemeanor and, upon conviction, shall be fined not more than $1,000 and, in addition thereto, may be imprisoned in the county jail for hard labor for not more than one year. This section shall not apply to a licensed pharmacy, licensed pharmacist, wholesaler, manufacturer, or his or her representative acting within the line and scope of his or her employment, physician, veterinarian, dentist, or nurse acting under the direction of a physician, nor to a common carrier or messenger when transporting such drug or medicine in the same unbroken package in which the drug or medicine was delivered to him or her for transportation.