Any person occupying or having control of any building, who knowingly permits the sale of property at public auction in such building, or in any apartment or yard appertaining thereto, contrary to the provisions of this chapter, shall be guilty of a misdemeanor.