¶1The Bohn Sash & Door Company, M. A. Disbrow, and George A. Hoagland each began a separate action for the foreclosure of a mechanic’s lien in the district court of Douglas county. These three cases were consolidated and tried as one, and upon final hearing a decree was rendered granting each plaintiff and cross-complainant relief, though not in each instance in the measure prayed. The facts out of which arose the controversy adjusted by the above decree were, in substance, as follows: On the first of October, 1889, William J. Paul, one of the defendants, was the owner and in possession of the following described real property: Lots 3 and 4, in block 1, in Capitol Hill Addition to the city of Omaha, being a tract of land situate at the northeast corner of Twenty-sixth and Harney streets in said city, and hereinafter mentioned and called the *286“Twenty-sixth street property;” also the north 120 feet of a subdivision of lot 13 of lot 6, in Capitol Hill Addition to the city of Omaha, being a tract of land situate at the southeast corner of Twenty-fifth and Harney streets and hereinafter mentioned and called the “Twenty-fifth street property.” These tracts were separated from each other by the space of an intervening block or more. On the 9th day of October 1889, William J. Paul entered into a written contract with the firm of Case & Kennedy, by the terms of which Case & Kennedy undertook to construct a block of ten contiguous residences on said Twenty-sixth street property, and also a block of five contiguous residences on the Twenty-fifth street property. By the terms of this contract the firm of Case & Kennedy were to perform all work and furnish all material necessary to construct the aforesaid two blocks according to plans and specifications agreed on, in payment for which the said firm was to receive $51,650 in money and real property, to be conveyed at an agreed price. Immediately the erection of the Twenty-fifth street property was begun, and afterwards, in 1890, the building contemplated was commenced on the Twenty-sixth street property. Afterwards there was completed the block on Twenty-fifth street. That on Twenty-sixth street was never finished. For the satisfaction of the unpaid claims of subcontractors under Case & Kennedy, and of mortgages on the properties on Twenty-fifth and Twenty-sixth streets, foreclosure proceedings were begun, and because some of the causes of action affected both properties, the consolidation hereinbefore referred to was rendered indispensably necessary. The decree fixed the priorities of the several claimants and directed a sale of the property on Twenty-sixth street and Twenty-fifth street respectively, directing the application of the proceeds of sale of each property to be made to such parties as were respectively entitled to liens thereon. While there were thirty-two parties whose rights were thus determined, there has *287been an appeal taken by but six, and to a consideration of these appeals alone need our attention be directed.
¶2Before the contract was made for the erection of the block of buildings on the Twenty-sixth street property, that property had been mortgaged by a former owner, one Andrew J. Rosewater, to John P. Sehoning, who had assigned his mortgage to the Omaha Savings Bank. By this mortgage there was secured the payment of three promissory notes for $5,022.22 each, but one of these notes meantime had been paid. On the Twenty-sixth street property William J. Paul, on May 1, 1888, made another mortgage to secure payment of his promissory note for $6,500, held by J. H. Millard, trustee. On the 27th of May, 1890, William J. Paul executed to W. B. Millard, trustee, a mortgage on the Twenty-sixth street property to secure payment of his note for $10,000, due August 27 following. On the 13th day of June, 1890, said Paul made another mortgage on the Twenty-sixth street property to W. B. Millard, trustee, for $5,000, due in ninety days after date. Each of said mortgages was duly recorded. On July 7, 1890, Mahoney & Co. filed a subcontractor’s claim for a mechanic’s lien for $178.85. So far as is shown by the record this was the condition of the Twenty-sixth street property when, in July, 1890, Mr. Paul applied to the Omaha agent of the Kansas City Loan Company for a loan thereon to be made by Willis G. Myers. This loan was afterwards effected, and with a part of the proceeds thereof there were paid on the mortgages above referred to the following sums, to-wit: To the Omaha Savings'Bank, $11,203.91; to J. H. Millard, $6,933.74; to W. B. Millard, $16,258.91. Mr. Myers procured the release of these mortgages of record, and forebore to take any assignment of them; but, in consideration of the fact that the loan was effected for the purpose of taking up these mortgages, the district court subrogated Mr. Myers to the rights of the holders of the original mortgages' which he had paid *288with the proceeds of the loan made by him to Paul. This right of subrogation will be considered later. Incidentally, however, to this loan there arose other questions, which by the district court were held of sufficient importance to postpone the lien of the Bohn Sash & Door Company and Edward C. Tighe to the lien of the mortgage for $35,000 held by Myers. This mortgage, after it had been recorded, was transferred, with the bond which it secured, to Jeffries & Sons, who were parties to the foreclosure proceedings in he district court. The lien of the Bohn Sash & Door Company for $3,331.67, with which we have to deal, was for material furnished between March 1 and July 30, 1890. In like manner we must consider the claim of Edward C. Tighe for labor performed and material furnished between the 25th day of November, 1889, and the 5th day of August, 1890, to the amount of $844.03.
¶3
¶4
¶5We are now confining our attention to the discharged mortgage held by the Omaha Savings Bank, and to that held by J. H. Millard, for the reason that the third and fourth mortgages, being those to William B. Millard, were filed later than the inception of the lien of the Bohn Sash & Door Company and of Edward C. Tighe, and it matters not, therefore, whether or not there was subrogation as to these last named mortgages, for if subrogated the party so entitled would only find himself holding a lien junior and inferior to that of the Bohn Sash & Door Company and Edward C. Tighe. In each of the cases cited to sustain the right of subrogation there was a recognized equity upon which to found that right. For instance, in the case of Blodgett v. Hitt, 29 Wis., 169, land had been sold at administrator’s sale. The notice of the sale was insufficient and the proceedings void, and the heirs of the deceased were entitled to the land. It was held, however, that the money which the purchaser paid, having been used to pay off a mortgage on the land and other debts of the ancestor which the heirs would have been obliged to pay in order to hold their inheritance, it was but equitable that the purchaser should be subrogated to the lien of the mortgagee and to the rights of all creditors whose claims had been discharged. What was regarded as the pivotal inquiry in that case is indicated by the following language quoted from the opinion: “ But the question is not, alone, wha-t is the natural and inherent justice of the case? but it is, are the principles and rules of equity jurisprudence, as recognized and enforced by courts of equity, sufficiently broad and comprehensive to reach the case and compel the heirs to repay *293the sums which the defendant has thus paid for their benefit before they will be permitted to take possession of the land in controversy?” It will be noted in this language that the conclusion reached could not have been attained alone on the consideration of what is the natural and inherent j ustice of the case, but it was required that there should concur with this some well recognized principle of equity jurisprudence which would compel the heirs to repay the sums which the defendant had paid out for their benefit. The consensus of all the cases cited to sustain the subrogation in favor of Jeffries & Sons is that there must exist the equitable principle just noted. In some instances this equitable principle forbids that heirs shall profit by invalid administrators’ sales made under misapprehension, causing such invalidity. So, where money has been advanced by way of loan or otherwise because of misconception of the condition of the title, it has been held that there should exist the right of subrogation to the mortgage or other security released by payment of the money advanced. Of this class was Betts v. Sims, 35 Neb., 840. In all the cases,however, it is noticeable that there exists a sufficient basis for equitable relief. In some it is because of mistake, — a well recognized equitable ground for the interference of courts, irrespective of whether there is involved the right of subrogation or some other right. In another class of cases there exists the right of subrogation because of the intent with which loans have been made for the payment of prior mortgages. Of the class just mentioned, the case of Emmert v. Thomas, 52 N. W. Eep. [Minn.], 31, is an example. Because in this case there is concisely stated the conditions necessary to entitle to subrogation of the nature just mentioned, the following language is quoted: “The better opinion now is that one who loans his money upon real estate security for the express purpose of taking up and discharging liens or incumbrances on the same property, has thus paid the debt at the instance, request, and solicita*294tion of the debtor, expecting and believing in good faith that his security will of record be substituted in fact in place of that which he discharges, is neither a volunteer, stranger, nor intermeddler, nor is the debt, lien, or incumbrance regarded as extinguished if justice requires that it should be kept alive for the benefit of the person advancing the money who thereby becomes the creditor.” If Jeffries & Sons were properly entitled to subrogation as decreed by the district court, it must have been upon the application of the principles just quoted, for they are most nearly applicable.
¶6Let us now consider the evidence of Mr. Pease, who was the agent through whom the $35,000 loan was made. He testified as follows: “In 1890 I was the representative of the Kansas City Investment Company at Omaha, and negotiated the mortgage with William J. Paul on the property at the corner of Twenty-sixth and Harney streets, in the city just mentioned. This mortgage was taken in the name of Willis G. Myers. I examined the property at the time I made the loan, and made an estimate of its value. I also examined the records, or had them examined, in regard to the condition of the title. Only one mechanic’s lien of a small amount appeared against the property, if I recollect right, for about $100. I entered into as particular inquiry as I could and asked all the questions of Mr. Paul that pertained to the subject; and he informed me and made figures to show that the amount of the loan we were making, — that the balance above that was to be paid out,, that the prior mortgages would pay all the incumbrances up, — all the liens; that they were provided for, all the larger ones were provided for, and that there would be cash enough come out of the loan to pay the balance. He said he had paid the contractor $16,000 in cash, if I recollect right, and that they were to take real estate to the amount of the balance that was coming to them. He had arranged to sell them certain real estate; that they should *295take certain lots, and told me what they were. I do not recollect now, but there was no more money coming to them. I do not think that the subject of the solvency of Case & Kennedy was raised. There was no question in my mind about the solvency of Case & Kennedy. I don’t think there was any doubt as to their solvency at that time. These negotiations were carried on for about thirty days previous to the filing of their mortgage, probably five or six weeks; and they were continued up to the time of the filing of the mortgage to pay off all prior mortgages. I paid off the prior incumbrances, except the mechanic’s lien. That was a matter of dispute between the men and Mr. Paul. There was money still in my hands to take care of that. At no time before the making and recording of the mortgage did Mr. Paul give me any intimation that a mechanic’s lien was filed or any demand made upon which any mechanic’s lien would be filed. I relied upon his statement that the payments of the building were provided for. I never would have made the loan in this case if I had known that as a matter of fact the subcontractors had not been paid the amount of five or six or seven or eight thousand dollars. I paid three mortgages with accrued interest, amounting to three thousand and some hundred dollars. [In this connection the witness described the mortgages held by J. H. Millard and the Omaha Savings Bank.] The note 1 took of Mr. Paul was sold to John Jeffries & Sons, trustees. It was for $35,000. Before I made the loan I personally looked over the property. The buildings were partially finished on the inside. It was finished in part. I think they were up and inclosed. Some of them were entirely finished, and others partly. I cannot say that I knew who the contractors were on the building. Mr. Paul told me, — in fact showed me his contract. I did not ask Case & Kennedy whether they had received their pay. I knew nothing about the subcontractors. I did not go to them. As to their re*296sponsibility, or as to whether they had been paid, all ray information came from Mr. Paul. I saw a release made of two of the mortgages. The parties holding the mortgage, the third one, had to await Mr. J. H. Millard’s return from Europe. Part of our contract was to take up these mortgages. I would not have paid them without their being satisfied of record. The object in having these mortgages released was to give me a mortgage of $35,000 against and over which no other mortgages would be of record for priority. The prior mortgages were destroyed for the purpose of making this the first mortgage on the property. We did not take anything but a first mortgage. Mr. Paul told me that arrangements had been made for the other liens in addition to these mortgages. When he borrowed the money everything was provided for. I believed that and made the loan relying upon it. I saw the property mortgaged on dozens of occasions myself. I saw it two or three times before this examination, when the president of the company was with me. The date of the mortgage was August 1. I cannot tell whether I saw the property after the 25th of July prior to seeing it in August, the date of the mortgage. I saw it on a great many occasions. I was up there several times. I cannot tell you the date of any visit to the property. I lived on Twenty-fifth street at that time and I saw the property frequently. There was no money paid on the mortgage until after it was acknowledged, I presume. I believe the contractors were continuing work on the property on the date on which the mortgage was acknowledged. There was somebody at work all the time, I think. When I made the examination with Mr. Holmes there were several men at work on the inside finish of the house, and it is my recollection that that was about three weeks prior to the first of August. I had no occasion to make any inquiry to ascertain whether or not there was anybody at work on the house, or ascertain whether Case & Kennedy were at work on the house at the time when *297the mortgage was acknowledged.” In this evidence there is no such mistake shown as would afford grounds for equitable relief. It is true Mr. Pease testified that he relied upon the representations of Mr. Paul as to the manner in which payments would be made and had been provided for, and that he believed the statement that no mechanic’s lien, except one as to which there was a dispute, had been or would be filed. He admits, however, that he knew that the buildings were in course of erection, but that he on that account made no inquiry of such parties as were supplying the material or doing the work of constructing. The rule as to what Mr. Pease was bound to ascertain and know is thus stated in the fourth paragraph of the syllabus of the case of Henry & Coatsworth Co. v. Fisherdick, 37 Neb., 207: “A party taking a mortgage on real estate is bound at the time to know whether material has been furnished or labor performed in the erection, reparation, or removal of improvements on the premises within the four prior months.” The language quoted was used specially with reference to principal contractors, but it is equally applicable to subcontractors. Since it was the duty of Mr. Pease to ascertain what liens not appearing of record had existence by reason of the condition of the work in progress, he could not relieve himself of the effect of the knowledge which proper inquiry would have developed, by refusing or failing to make that inquiry. The constructive notice imparted by the building operations were as effective within the time allowed for filing mechanics’ liens as would have been after the actual filing. Had there been on file the liens of the Bohn Sash & Door Company and of Edward C. Tighe, there could be no doubt that the mortgage taken by the agent Pease for money used to discharge prior mortgages would have entitled him to no subrogation because of a mistake as to the condition of the title. Equally it must result that, under the circumstances disclosed in his testimony, the mortgage taken by him was *298not taken because of a mistake as to the rights of these subcontractors. There is no equitable right of subrogation shown on the ground of mistake. The evidence of Mr. Pease leaves no room for doubt that the payment of the mortgages prior to that taken by him in favor of Myers was made simply to remove and cancel those incumbrances, so that thereby the mortgage for the security of the $35,000 should be the first lien. It is not enough to entitle to subrogation that with the proceeds of the Myers mortgage prior mortgages have been discharged. “The real question in all such cases is whether the payment made by the stranger was a loan to the debtor through a mere desire to aid him or whether it was made with the expectation of being substituted in the place of a creditor. If the former is the case, he is not entitled to subrogation; if the latter, he is” (Tradesmen’s Building Association v. Thompson, 32 N. J. Eq., 133); citing Coe v. New Jersey M. R. Co., 4 Stew. [N. J.], 105, 106. We conclude, therefore, that no good reason has been shown for the subrogation of Jeffries & Sons to the rights of the holders of the mortgages which with the proceeds of the Myers mortgage were satisfied. The lien of the Bohn Sash & Door Company for $3,331.67, and that of Edward C. Tighe for $381.97, will be placed in the second class, equal in priority with that of Mahoney & Co., and superior to the rights of Jeffries & Sons. There were two liens in favor of the Bohn Sash & Door Company, recognized in the decree of the district court, of which the first is mentioned above. The second lien was for material furnished between September 17 and November 29, 1890, and was furnished under a contract with Mr. Paul himself, while the first lien was that of a subcontractor. As the second lien was for material the commencement of the furnishing of which was subsequent to the recording of the mortgage now held by Jeffries & Sons, there exists no reason why it should be taken out of the class in which it was placed by the district court.
¶7*299
¶8
¶9
¶10
¶11The judgment of the district court is modified in the particulars above indicated, and a decree accordingly will be entered in this court.
¶12Decree accordingly.