None of the evidence is contained in the record, and therefore the decision of this appeal must be determined solely upon the facts as found by the learned trial court. The facts so found, so far as it is important to note, are; The defendant Frederick Mahl, on or about November 30, 1898, became the owner in fee of the five-acre parcel of land first described in the complaint. O-n the 16th day of March, 1899, he became the owner of the other parcel described therein. At all times since he became such owner “the plaintiff has been and now is in the actual possession of them as a tenant of the said defendant, working them on shares.” During the years 1898 and 1899 the defendant Frederick Mahl became indebted to the plaintiff for money loaned and for work, labor, and services, amounting in the aggregate, with interest, to the sum of $352.25. On March 1, 1899, Mahl agreed to secure the payment of such indebtedness by executing and delivering to the plaintiff a mortgage upon the premises in question for the amount, and “that the plaintiff should continue thereafter to occupy said two parcels of land as such tenant until such debt should be fully paid and satisfied.” He refused, however, to execute and deliver said mortgage, and no part of said indebtedness has been paid, although by the terms of said agreement the whole thereof became due and payable not later than March 1, 1900. On or about the 1st day of January, 1900, Frederick Mahl, the owner, duly executed a mortgage covering the parcel of land last described in the complaint, and delivered the same to the defendant Michael Weitzman (who did not appear or answer, and does not appeal), to secure the payment of $200, with interest. Just one month later Frederick Mahl duly executed a mortgage upon the same premises, and delivered it to his son, the defendant John Mahl, to secure the payment to him of $200, with interest; and on the 15th day of February, 1900, he executed a mortgage upon the parcel of land first described in the complaint, and delivered it to *29another son, William Mahl, to secure to him the payment of $600, with interest. It is found as a fact that said sums were actually loaned by said mortgagees, respectively, to Frederick Mahl, and that said mortgages were executed and delivered in good faith to secure the payment of such loans. The mortgagee William Mahl died before the commencement of the action, and the defendant Clara Mahl was duly appointed executrix of his estate. The defendant Lerol Mahl is an infant son of William Mahl and Clara Mahb and the mother, Clara Mahl, was duly appointed his guardian ad litem, and appears for him as such by her attorney.
Upon these facts the question is squarely presented whether or not the indebtedness due and owing by Frederick Mahl to the plaintiff, the payment of which he agreed to secure by the execution and delivery of a mortgage, and which agreement was of such a character as to constitute an equitable mortgage in her favor upon the premises in question, was superior or inferior to the liens or rights of the defendants or any of them. At the outset it must be held that, the judgment, in so far as it determines that the mortgage of the defendant Michael Weitzman is a lien upon the premises superior to the lien of the plaintiff’s equitable mortgage, is erroneous, because of the fact that said defendant did not appear or answer, but made default, and thereby, in effect, admitted that plaintiff’s lien was superior to his, and she thus became entitled to a judgment as against him, as prayed for in the complaint. It must also be held that the learned trial court had no power or authority to make any judgment or decree affecting the rights of the defendant Eliza Mahl in the premises, for the reason that no relief was demanded in the complaint as against her. Her alleged interest in or relation to the premises was not stated, and therefore she was under no obligation to answer or defend, and had a right to assume that no judgment would be rendered which would in any manner affect her rights. Whether her interest in the premises is an “inchoate right of dower” or some greater or less interest, we are not advised by the findings, or by any allegation contained in the pleadings, and therefore conclude that the judgment, in so far as it assumes to determine that her right to or interest in the premises was or is limited to an “inchoate right of dower,” is not binding as against her.
We are, then, brought to a consideration of the important question in this case: Whether or not the equitable mortgage of .the plaintiff, which the trial court found existed, constitutes a lien upon the premises superior or inferior to the liens of the mortgages of the respondents. It. will be noted that all the indebtedness from Erederick Mahl, the owner of the premises, to the plaintiff, had been incurred, and the agreement to secure the payment of the same by the execution, and delivery of a mortgage covering the premises in question had been made, prior to the execution and delivery of the defendants’ mortgages, or either of them, and that when said mortgages were executed and delivered, and when the indebtedness which constituted the consideration therefor was incurred, the plaintiff was in the actual possession of the premises, but, as found by the learned trial court, as tenant of the owner, Frederick Mahl. As a general *30proposition, it may be stated that a mortgagee or grantee who takes a conveyance of real property, either conditional or absolute, which is in the actual and open possession of another, is charged with knowledge of the exact rights of the person so in possession, and it is of no consequence that such rights were in fact unknown to such mortgagee or grantee. Phelan v. Brady, 119 N. Y. 587, 23 N. E. 1109, 8 L. R. A. 211. The rule, however, does not apply where the relation between the actual owner and the person in possession is solely that of landlord and tenant, because - under such circumstances the possession of the former is, in law, the possession of the latter. Bedloe v. New York Floating Dry Dock Co., 112 N. Y. 263, 19 N. E. 800, 2 L. R. A. 629. If the general rule above stated is applicable, then a person contemplating the purchase of real property, possibly occupied by many tenants, must not only ascertain the terms and conditions of the leases under which they respectively occupy, but must also at his peril ascertain what, if any, secret agreements have been made between the owner and any or all of such tenants. To illustrate: If a person owning a building occupied for stores and living rooms by a large number of tenants should apply to a savings bank for a loan, to be secured by a mortgage upon the premises, concededly the bank would be under the necessity, if it wished to know the exact condition of the title, to ascertain the nature and conditions of the leases under which such tenants occupied respectively; but, having learned that the occupants were tenants, and were in possession solely as such, must the bank ascertain at its peril whether or not all or some one of them did not have a secret agreement with the owner, by which a lien upon the premises had been created ? Upon authority, and principle as well, it must be held that a purchaser of real property occupied by persons sustaining only the relation of tenants to the owner may assume that their possession is the possession of the owner, and such purchaser is not chargeable with knowledge of any secret agreement which may have been made between such owner and such tenant or tenants affecting the title to the property, and which is wholly independent of and outside of the agreement or contract establishing such relation, and in no manner involved by the terms or conditions, of the leases or agreements of occupancy.
These propositions do not, however, aid the respondents. The trial court has found not only that the plaintiff occupied the mortgaged property 'in question as tenant, but also that the owner, before any rights were acquired by the respondents, agreed with the plaintiff that her indebtedness should be secured by a mortgage upon the premises, “and that the plaintiff should continue thereafter to occupy said two parcels of land as such tenant until such debt should be fully paid and satisfied.” Under that agreement the plaintiff had the right as tenant to occupy the premises until the mortgage was given and her indebtedness paid, as against any of the defendants.
Taken as a whole, the findings of the trial court establish that the terms of plaintiff’s lease were, in effect, that she should work the premises on shares; that her lessor would execute and deliver to her a mortgage to secure the payment of his indebtedness to her. *31and that she might continue to occupy the premises until such mortgage debt was fully paid and satisfied. The plaintiff being in possession under such lease, the respondents were chargeable with knowledge of its terms and conditions, and her rights could not be affected by the execution and delivery of their mortgages, or by any other agreement made and entered into by and between them and plaintiff’s landlord, Frederick Mahl, to which the plaintiff was not a party, and to which she did not assent. The plaintiff in this case, by virtue of her agreement with Frederick Mahl, was entitled to work the premises in question on shares; was entitled to a mortgage, which should be a lien upon the same to secure the payment to her of a certain sum of money; and she was also entitled to occupy the premises until such sum was paid. Those were the terms and conditions of her lease, and, she being in possession under such lease, the defendants acquired no rights, as against her, under the mortgages executed and delivered by Frederick Mahl to them.
The defendant Frederick Mahl having refused, as found by the trial court, to execute and deliver to the plaintiff the mortgage which he had promised to give, and having neglected and failed to pay said mortgage debt, the plaintiff was entitled to bring this action to establish such mortgage, and to enforce the payment of the same by foreclosure and a sale of the premises.
As we have seen, the defendant Michael Weitzman did not appear or answer in the action, and made default, and as to him the plaintiff was entitled to the relief demanded in the complaint. The defendant Eliza Mahl also made default. Who she is, or how she was interested in the premises, does not appear, either by the complaint (except in the title) or by the findings of the court. It seems to have been assumed, and' probably is the fact, that she is the widow of Frederick Mahl, the mortgagor; but there is no allegation in the complaint or any finding of fact to that effect, and no relief as against her is demanded in the complaint. She was, therefore, not called upon to appear or answer, and her rights or interest in the premises ought not to be determined in this action, and while the pleadings are in their present condition.
The trial court properly determined as a conclusion of law, upon the facts found, that the transaction between the plaintiff and the defendant Frederick Mahl amounted to an equitable mortgage upon the premises described in the complaint for the payment of $352.25, and that she was entitled to and has an equitable lien upon said premises for that amount. In fact, no appeal is taken from that part of the judgment. But we think, upon the facts found, the court was in error in concluding that such lien was inferior to the mortgage liens of the defendants, and- also in making any determination in respect to the rights of the defendant Eliza Mahl. The judgment should be modified so as to adjudge that the lien of the plaintiff’s equitable mortgage is a lien upon the premises described in the complaint prior and superior to the liens of the mortgages of the defendants respectively, and so as to provide that the premises be sold by the referee appointed for that purpose, but subject to any and all rights of the defendant Eliza Mahl; that out of the proceeds of *32sale, after paying the costs and expenses thereof, there be paid to the plaintiff or her attorney the amount of her equitable mortgage and interest, together with the costs of the action allowed by the court below and of this appeal; and that the balance of the purchase price, if any, be paid to apply upon the mortgages of the defendants according to their priority; and, as so modified, the judgment is affirmed, with costs to the appellant, to be paid out of the proceeds of the sale of the premises as above provided.
Judgment modified, and, as modified, affirmed, with costs to the appellant, to be paid out of the proceeds realized upon the sale of the premises.
Ordered, that the judgment herein be modified so as to adjudge that the plaintiff’s equitable mortgage is a lien upon the premises described in the complaint prior and superior to the liens of the mortgages of the defendants respectively, and so as to provide that the premises be sold by the referee appointed for that purpose, but subject to any and all rights of the defendant Eliza Mahi; that out of the proceeds of such sale, after paying the costs and expenses thereof, there be paid to the plaintiff or her attorney the amount of her equitable mortgage and interest, together with the costs of the action allowed by the court below and of this appeal; and that the balance of the purchase price, if any, be paid to apply upon the mortgages of the defendants according to their priority; and, as so modified, the judgment is affirmed, with costs to the appellant, to be paid out of the proceeds of the sale as above provided. All concur.