Section 50. Any official issuing a certificate of notice of intention of marriage knowing that the parties are prohibited by section eleven from intermarrying, and any person authorized to solemnize marriage who shall solemnize a marriage knowing that the parties are so prohibited, shall be punished by a fine of not less than one hundred or more than five hundred dollars or by imprisonment for not more than one year, or both.