Plaintiff corporation, a lumber company, sold and delivered a bill of lumber amounting to $70.95, to the defendants, Schuler & Muench, contractors, with the other defendants, the Hellers, for the erection of a certain building for the latter. The plaintiff, in accordance with the statute, filed its mechanics’ lien against the lot and the building, in the erection of which said lumber was used by Schuler & Muench, under the contract with the owners, the Hellers. Afterwards the plaintiff brought its suit for the enforcement of said hen before a justice of the peace. The defendants, the Hellers, were duly served with process, but no service was had on Schuler & Muench. The justice thereupon entered an order on his docket requiring the plaintiff to give notice to Schuler & Muench as required by section 6163, Revised Statutes.
On the day set for the hearing of the cause the following entry appears on the docket of the justice: “And now, on this first day of December, 1890, it appearing to the satisfaction of the court, that Newton Hall, constable of Washington township, did, more than twenty days before the time of the trial in this case, post up, at four public places in the county, four' *94public notices directed to "William H. Schuler and James Muench, parties defendant herein, notifying them of the day, date, time and place of trial in this case, as required by law, which said fact was admitted by the defendants’ counsel, although the said constable failed to make proper return of said notices as provided by law; now on this first day of December, 1890, this cause being submitted to the court without a jury, and the court having heard and considered the evidence, as well as the arguments of counsel, finds that plaintiff’s lien is not sustained by the evidence, and that defendants are entitled to recover of, and from, the said plaintiff their costs herein expended, taxed at $12.60. It is, therefore, adjudged that the said defendants have judgment against the said Johnson & Frazier Lumber Company, the plaintiff as aforesaid, for their costs herein expended, taxed at $12.60, and have therefor execution. ’’ From this judgment the plaintiff appealed to circuit court where on a new trial it was adjudged that the plaintiff recover of the defendants the am mint of the lien account, and that the same be delared a hen against said real estate, and have thereof execution. Afterwards the defendants Heller filed a motion to set aside said judgment and to quash the special execution issued thereon upon the specific ground that said judgment was void.
From the judgment overruling the motion, defendants, the Hellers, have appealed.
The justice, under the provisions of article 4, chapter 94, was invested with jurisdiction over the subject-matter of the action. The appealing defendants, the Hellers, who were the owners of the property subject to the hen of plaintiff, were served with summons according to law so that the jurisdiction, not only over the subject-matter but of the person as to the appealing defendants, was complete. But the appealing defendants *95contend that it appears' from the transcript of the justice contained in the bill of exceptions, that Schuler & Mueneh, the contractors, were not notified by publication according to law, and that, therefore, there was such a defect of jurisdiction of the justice over all the necessary parties to the suit as that no valid judgment could be rendered against them, the appealing defendants. Jurisdiction over the subject-matter of an action cannot be conferred by consent. The law alone, and not the consent of the parties, must determine what matters a court may adjudicate. Jurisdiction, however, over the person may be waived. The order of publication by the justice in this case was well enough, but the advertisement of it was deficient in several essential particulars, as will be seen by reference to it in connection with section 6163, Bevised Statutes, and 26 Mo. App. 631. The transcript of the justice’s docket shows that at the trial “defendants’ counsel” admitted •that Schuler & Mueneh had been notified “as required bylaw.” It further appears by such transcript, that the justice, after hearing the evidence “as well as the arguments of counsel, finds the plaintiff’s lien is not sustained,” and gave judgment for the defendants. If this were all we should be inclined to the opinion that the defendants, Schuler & Mueneh, were present by their counsel and participated in the trial. But it further appears from the bill of exceptions that it was agreed at the hearing of the motion to quash, that Schuler & Mueneh had not appeared either before the justice or in the circuit court, in person or by attorney, so that interpreting the recitals in the justice’s judgment in the light of this agreement, we must conclude that the counsel there referred to was that of the appealing defendants, and that the admission made by him was that the publication had been made as there .recited — not that it was such a publication as is required *96by tbe statute. The admission so construed shows, neither the appearance of Schuler & Muench nor that-the publication was made according to law. It must follow, from these considerations that Schuler & Muench were neither notified nor voluntarily appeared in any way to the action.
The statute, section 6713, requires that, in all suits for the enforcement of mechanics’ liens, the parties to the contract shall be made a party. It further provides in section 6725, that in all cases where a lien shall be filed by any person other than the contractor, that it shall be the duty of the contractor to defend any action brought thereupon, etc. In Horstkotte v. Menier, 50 Mo. 158, it was declared that when the owner of property contracts with a responsible party to furnish all materials and erect for him a building under the above section, he has the right to look to such contractor for protection against all liens by materialmen and subcontractors. If the original party was not made a party he would not be bound by the judgment; whereas, if he was, he would be estopped to dispute the amount of the recovery between himself and the owner. The original contractor ought to be brought before the court as a co defendant for the purpose of protecting his rights and those of the owner. The statute in relation to the enforcement of mechanics’ liens before justices of the peace requires that, if the finding be for the plaintiff and sustaining the lien, the judgment shall be that he recover the amount of the indebtedness found to be due, with costs, with the addition that, if sufficient property of the debtor cannot be found to satisfy such judgment and costs, the same or the residue thereof shall be levied of the property charged with the lien, etc. The case under the statute is as if a creditor proceeding by attachment and garnishment should dismiss his suit against the defendant and afterwards take steps. *97against the garnishee when there could be no judgment which he could satisfy. Webbing v. Powers, 25 Mo. 599; Ashburn v. Ayers, 23 Mo. 77; Westcott v. Budwell, 40 Mo. 146; Steinmann v. Strimple, 29 Mo. App. 478; Steinkamper v. McManus, 26 Mo. App. 52; Murdock v. Hillyer, 45 Mo. App. 287.
In all cases except in that provided in section 6164 the statute by its very terms requires that there must be a personal judgment against the contractor; otherwise there would be no judgment which the owner’s property could be condemned to satisfy. It is' well settled by the cases just cited that no recovery can be had charging the premises with a lien except as incident to a personal judgment against some one with whom the contract for the work or materials was made, and who, himself, is. either the owner or standing with the owner, or some contractor under him, in a contractual relation, and then only where the work or material actually entered into the construction of the building or improvement. The judgment of the circuit court was rendered as if the contractors had been notified as required by section 6163, which, as we have seen, was not the case.'
It is contended by the plaintiff that, although the appealing defendants had the right to have the contractors, Schuler & Muench, made codefendants and served with process, yet, as that was not done, and as they took no steps before judgment to have it done, that they thereby waived their right. It has been oftentimes decided under our practice act that unless the objection of defect of parties to the record is made, either by demurrer or answer, it will be deemed waived. Gimbel v. Pignero, 62 Mo. 240; Butter v. Lawson, 72 Mo. 227. And this rule has been held to apply in actions brought upon mechanics’ liens in courts of *98record. Horstkotte v. Menier, 50 Mo. 158; Frwin v. Furniture Co., 20 Mo. App. 313. But the statute, section 2047, upon which the foregoing rule of practice is based, is limited to actions in courts of record, section 2038, and, hence, is inapplicable to’ actions brought before justices of the peace. If the contractors had been personally served with process, the plaintiff would be entitled to judgment as provided in section 6162, Revised Statutes, or if there had been constructive notice to them then it would be entitled to judgment as provided in section 6164; but, as there was neither kind of service, there can be no judgment at all. Proceeding under the rule, “When jurisdiction is conferred upon a tribunal, to be exercised in a 'special mode, contrary to the course of the common law, the steps prescribed by the statute, as preliminary to the exercises of the jurisdiction, must be substantially complied with, in order that the jurisdiction may attach. The rule is even of greater force where the proceeding takes place in an inferior tribunal, not of record, such as the court of a justice of the peace.” And the further rule that, in order for a court to acquire jurisdiction by an order of publication to render a valid judgment against a party who does not appear, the statutes prescribing the substance of the notice, which it is apparent was not done in this case, must in all respects be substantially complied with (McKelvey v. Wonderly, 26 Mo. App. 631; Railroad v. Campbell, 62 Mo. 588; Bobb v. Woodward, 42 Mo. 482), we must conclude that there was no jurisdiction to render the judgment in question, and that it is, therefore, void.
The judgment of the circuit court is.reversed, and cause remanded with directions to sustain the motion of the appealing defendants.
All concur.