Biggs, J.
On the twenty-ninth day of August,-1893, Edmonston, the appellant, sold to McCord, the-defendant, two horses. To secure the purchase money,McCord gave a chattel mortgage on the.horses, in-which it was stipulated that he should remain in possession of them until condition broken, and it. was also stipulated that he should not sell, or attempt to sell,the horse's, until the debt was paid. The mortgage was-duly recorded on the day following its execution. A'short time afterward McCord put the horses in the-livery stable of Q-. W. Pickett, the respondent. Default was made by McCord .in the payment of the first; installment of the debt, which became due about the-middle of October following, and Edmonston demanded possession of the horses from Pickett, who refused to-give them up, unless his charges for feeding them were paid. Thereupon, to wit, on the nineteenth day of October, Edmonston instituted a suit in replevin for the possession of the horses against Pickett. The action wás commenced without bond before a justice of the-. *471peace, where it was tried on October 30. It appears from the transcript of the judgment of the justice that Pickett interposed, as a defense to the action, his claim for the feed, which was allowed by the justice to the amount of $75. The amount allowed was declared a lien on the horses, but no order was made enforcing it, and Pickett was allowed to retain the possesion of the animals. Edmonston took an appeal to the circuit court. Subsequently, to wit, on November 7, Pickett instituted an action against McCord before a justice of the peace to enforce his alleged lien for feeding the horses. On his own application Edmonston was made a party to that action. He claimed to own the horses, and denied the right of Pickett to a lien. He also moved to dismiss the action for the reason that the same subject-matter was involved in the replevin suit which was then pending in the circuit court. The justice overruled the motion and rendered judgment in favor of Pickett for $87, and declared the amount a lien on the horses, and they were ordered to be sold. From that judgment Edmonston also appealed. In the circuit court Edmonston renewed his motion to dismiss the action for the enforcement of the lien, which the court overruled. He excepted to the ruling of the. court and still excepts. By agreement, both cases were tried together before the court. .The issues in both cases were found in favor of Pickett, and judgments entered accordingly. In the suit to enforce the lien the court allowed $75, and ordered the sale of the horses to pay. that amount and the costs of suit. In the replevin suit the judgment was simply that Edmonston was not entitled to the possession of the horses as against Pickett. From both judgments Edmonston has appealed. Both cases are here under one record.
The institution of the suit for the enforcement of the agister’s lien was unnecessary, and it ought to have *472been dismissed. McCord had defaulted in the payment of the mortgage debt, and, previous to the institution of either suit, he had surrendered all claim to the horses, and had so notified both Pickett and Edmonston. In defending against the replevin suit before the justice, Pickett, as he had the right to do, interposed his claim for feeding the horses, which was sustained by the justice and declared to be a lien on the animals. Wherein was the necessity for the second suit? The right of Pickett to have his claim against the horses adjusted in the replevin suit is well established by a long line of decisions, commencing with Dilworth v. McKelvy, 30 Mo. 149. The purport of the decisions is that, in such suits, the judgments should be so framed as to meet and satisfy the equities of the parties which appertain to the property in controversy. Following this line of decisions, we ruled in the case of Wright v. Broome, decided at this term of the court, that a claim by defendant for the feed of the animals in controversy could be tried and adjusted in a replevin suit. Our conclusion is that the circuit court committed error in overruling the motion to dismiss the action enforcing the lien, and consequently the. judgment therein must be reversed.
As the judgment in the replevin suit was but the result of the conclusion reached in the suit to enforce the agister’s lien, and, as the reversal of the judgment in the latter case leaves the rights of the parties undetermined, the judgment in the replevin suit must also be reversed and the cause remanded for further trial. On such retrial the question will be as to the relative priority of the lien of the mortgage in favor of Edmonston and that in favor of Pickett for feeding the horses. We deem it proper to indicate our views on that subject.
Our statute, which gives a lien for the feed or *473board of horses, provides that “every person who shall keep, board or train any horse * * * shall, for the amount due. therefor, have a lien on such animal, * * * coming into his possession, * * * and no owner or claimant shall have the right to take any such property out of the custody of the person having such lien, except with his consent or on payment of such debt.” Revised Statutes, 1889, see. 6730.
As the common law, in the absence of a special agreement, affords no lien for the feed of horses (Miller v. Marston, 35 Me. 153; Lewis v. Tyler, 23 Cal. 364; Grinnell v, Cook, 3 Hill (N. Y.), 485; Wills v. Barrister, 36 Vt. 220), the most of the states have statutes similar to our own. Controversies like we have here have arisen, and, in construing and applying the various statutes, different conclusions have been reached. Sargent v. Usher, 55 N. H. 287; Smith v. Stevens, 36 Minn. 303; Hanch v. Ripley 127 Ind. 151. The proper rule of construction, we think, is to give the lien of the prior mortgage the preference, unless a contrary construction is unavoidable. 1 Jones on Liens, sec. 691. Especially ought this rule to prevail, where the mortgage itself forbids the sale of the mortgaged property by the mortgagor; for it would be an anomalous proposition to hold that the mortgagor may pledge the animals for their feed and yet have no right to sell them. The language of our statute is not such as to require a construction which would abrogate such a contract, thereby violating fundamental rights of property. In such a case there are no equities in favor of the agister. The mortgage is on record, and he is presumed to have knowledge of its terms, and it is his own folly if he furnishes feed or pasturage for the mortgaged stock without first consulting the mortgagee. Therefore, in the present case, the judgment on a retrial should be for Edmonston, unless it appears-*474that he acquiesced iu the agistment, and the burden of showing this is on Pickett. To this we may also add that a careful examination of the evidence preserved in the present record fails to disclose any substantial evidence of that fact.
The judgment in the case o.f Pickett against McCord will be reversed and the action dismissed; and the judgment in the case of Edmonston against Pickett will also be reversed, but the cause will be remanded for retrial in conformity with this opinion.
Judge Rombauee concurs. Judge Bond dissents.