If so get an attorney asap and work it out with the HOA. Otherwise the HOA may end up foreclosing on you and taking the property from you!
Although I think there is technically a limit on the back due HOA or Condo dues owed, I think there is some grey area when the property doesn't go back to the lender and an investor buys it at the courthouse.
Contact an attorney asap because I've seen quite a few sleazy HOA and Condo attorneys that will try to take advantage of you--even if it is not legal!
Interesting website that may have helpful info for you:
From what I have seen; the answer is simple, (and probably universal):
If the HOA filed a LIEN against the house, then it will have to be taken care of by the Foreclosure.
If they didn't, then it won't.