Unfortunately your landlord and home owner failed to pay their property taxes or mortgage loan or both for a long time. You need to do the following:
Go to the county tax assessor's office or see if you can find it online. Find out if the property taxes are paid up to date or if you landlord / owner failed to pay taxes for a number of years. If the taxes are paid up to date, then it's the mortgage loan that is delinquent.
You should also call the county tax assessor's office and explain your situation. If the county is foreclosing on the home, ask them what the timeline is. How long do you have before you need to move out.
Bottom line - your landlord was pocketing your rent money and spending it on other stuff instead of paying the mortgage loan and property taxes. Do you have a signed lease? If you have a signed lease, the new owner will need to honor your lease until the expiration date. If you don't have a lease, you have 30 or 60 days to move out according to your state's laws.