Section 25. And be it further enacted by the authority aforesaid, That no alderman of the said city, nor any person holding an office of trust or profit under the laws of this commonwealth, or the ordinances of the select and common councils, the emoluments whereof is paid out of the treasury of the said city, shall be competent to serve as a member of the select or common councils.