B. The lien provided by this chapter shall not attach or be perfected until a memorandum of such lien signed under oath by the broker and meeting the requirements of this subsection has been recorded in the clerk's office of the circuit court of the county or city where the commercial real estate is located, from which date the lien shall have priority over all liens recorded subsequent thereto. The memorandum of lien shall state the name of the claimant, the name of the owner of the commercial real estate, a description of the commercial real estate, the name and address of the person against whom the broker's claim for compensation is made, the name and address of the tenant paying the rent against which the lien is being claimed, the amount for which the lien is being claimed, and the real estate license number of the principal broker claiming the lien. The lien provided by this chapter and the right to rents secured by such lien shall be subordinate to all liens, deeds of trust, mortgages, or assignments of the leases, rents, or profits recorded prior to the time the memorandum of lien is recorded and shall not affect a purchaser for valuable consideration without constructive or actual notice of the recorded lien. However, a purchaser acquiring fee simple title to commercial real estate and having actual knowledge of terms of a lease agreement that provide for the payment of brokerage fees due and payable to a real estate broker shall be liable for payment of such brokerage fees, unless otherwise agreed to in writing by the parties at or before the time of sale regardless of whether the real estate broker has perfected the lien in accordance with this chapter. The term "purchaser" does not include a trustee under or a beneficiary of a deed of trust, a mortgagee under a mortgage, a secured party or any other assignee under an assignment as security, or successors, assigns, transferees, or purchasers from such persons or entities.