No salary, compensation, or other emolument shall be paid to any person appointed to or retained in any position in violation of this part. Any person who wilfully or knowingly approves or makes such a payment is liable for the sum on his official bond.