Opinion of the court by
JUDGE HOBSONReversing.
Appellant, on April 22, 1897, filed in the Nicholas Circuit Court his petition in equity against appellee, W. W. Harbett, in which he alleged that on April 11, 1895, he-caused executions to be issued upon certain sale bonds executed by appellee, and placed tlre-m in the hands of the sheriff of Nicholas county, who levied them upon four tracts of land belonging to him — the first containing 32% acres, the second 33% acres, the third 8 acres, and the fourth 7 acres; that there was a mortgage upon the first tract, which was prior to his execution lien; that no part of his debt was paid, and that he had a lien on the land therefor. He prayed1 a sale of so much of the land as might be necessary to satisfy his> lien of $275.32, with interest from April 22, 1897, and for his costs. Summons was issued upon his petition, and duly served. Appellee failed to answer, and judgment by default was 'entered adjudging appellant a lien upon the tract containing 33% acres; also the 8-acre tract and the 7-acre tract; and ordering a sale of so much off the land as' might be necessary to satisfy the debt. The judgment was entered on May 20, 1897. The sale was made as directed by it on July 12, 1897, and appellant bought the property for the debt. At the September term, 1897, the report of sate was filed. At this term appellee appeared, and offered to file *an answer and counterclaim, which at the next term of the court was allowed to be filed. In this answer he alleged that he was and had be’en for many years' a housekeeper with a family, residing on the land, and that it was exempt as a homestead. He prayed that the sale be set *97aside, and his title to the land quieted. The answer was taken as controverted1 of record, and on the final hearing of the case the court dismissed appellant’s petition without prejudice. The proof showed that appellee had owned the land and lived on it with his family for many years; that originally he had a wife and eight children; that the wife had died 10 or 12 years before the suit was filed; and that the children had married or moved off, being all grown. It is insisted for appellant that the judgment of the court decreeing a sale of the land to satisfy appellant’s debt was void, because the petition failed to show' any grounds for relief in equity, and appellant had a legal remedy by proceeding under his execution levy to sell the land by sheriff’s sale. We need not determine whether the petition was sufficient to entitle appellant to relief in equity. The court had jurisdiction of the parties and of the subject-matter, and, if he erred in determining the relief to be awarded appellant, this did not render the judgment void. The question what relief, if any, appellant was entitled to under the allegations of the petition which were, confessed by appellee’s failure to answer, was necessarily presented to the court when the case was then submitted, and, if he erred in his decision, the only way to correct it was by appeal. Hardin v. Hardin, 6 Ky. Law Rep., 662; Bridgford v. Fogg (Ky.), 14 S. W., 600; Cheatham v. Whitman, 86 Ky., 614, (6 S. W., 595). No appeal has been taken from that judgment. It remains in full force. The court below, after the expiration of the term at which it was rendered, had no power to vacate or modify it, except upon the grounds set1 out in section 518 of the Code of Practice, none o<f which are alleged. . It remains, therefore, to determine what the *98lights of the parties are under the judgment. In Harpending’s Ex’rs v. Wylie, 76 Ky., 158, a judgment in an action against a husband and wife foreclosing a mortgage executed by them, which had been rendered by default, was held to preclude them from thereafter setting up a homestead exemption in the land. This case was followed in Davis v. Jenkins, 93 Ky., 353, (20 S. W., 283); amd in Honaker v. Cecil, 84 Ky., 202, (1 S. W., 392); Snapp v. Snapp, 87 Ky., 554, (9 S. W., 705), and Hill v. Lancaster, 88 Ky., 338, (11 S. W., 74), the same principle was followed, where a judgment by default had been rendered on a petition to subject the land .to the debt of the husband, where a conveyance had been made in fraud of the rights of cred-itttrs. These decisions rest upon the principle that a party who has had his day in court will not be allowed thereafter to set up a defense which he should then have pleaded1. See Turner v. Gill, 105 Ky., 414; 20 R., 1253; 49 S. W., 311; Sorrel v. Samuels, 20 R., 1498; 49 S. W., 762. The judgment ordering the land to be sold for the satisfaction of appellant’s debt was necessarily a determination that it was subject to such sale; and, that judgment being in force, he can not set up a right to a homestead in the land. The court below erred in allowing the answer and counterclaim to be filed, as the matters pleaded in it had been determined and settled by the judgment entered in the action at the preceding term, over which it then had no control.
It does not appear that the court below has passed on the report of sale. On the return of the case, if sufficient reasons are not shown for setting aside the sale, the court should confirm, it, and order a conveyance- made to the purchaser of the land. Judgment reversed, and cause remanded for further proceedings not inconsistent with this opinion.