Any person furnishing labor, services, material, fixtures, apparatus or machinery, forms or form work for the erection of a building, or structure, or improvement, by mistake upon land owned by another than the party contracting as owner, shall have a lien for such labor, services, material, fixtures, apparatus or machinery, forms or form work upon such building, or structure or improvement, and the court, in the enforcement of such lien, shall order and direct such building, structure or improvement to be separately sold under its judgment, and the purchaser may remove the same within such reasonable time as the court may fix.
770 ILCS 60/2