Any officer, agent, or representative of the State or any political subdivision who violates any provision of this article and any contractor or subcontractor or agent or representative thereof doing public work who neglects to comply with any provision of Section 1812 is guilty of a misdemeanor.