Licensed Associate Broker
Accredited Buyer Representative
GREEN Designated Agent
Legends Realty Group
You should probably consult an attorney, as these issues are not going to go away on their own.
One of my clients is in a similar situation and we are selling the condo short and there are past HOA dues and attorney fees. Buyer has agreed to pay them, so seller won't have to. Each situation is different but this was the best solution for my client.
I would read Rian's answer while you are calling a real estate attorney. Keep in mind, I'd the HOA has a lien on the property there is a possibility that it goes to first position which would make your mortgage second position and potentially open to deficiency judgments for the next 5 years.
Best of luck.
More information at the link below.