However, I attended a seminar on this just the other day. And the answer was "it depends" on how the HOA fees are collected, if they are at all. Again, I'm not a lawyer, so this is not legal advice. However, if the property is sold and it isn't a short sale, then all liens (including the HOA fees) would have to be paid in order to have a clear title. On the other hand, if it is a short sale, the lien probably would be wiped out. The "horror stories" I heard at the seminar were of the new purchaser, who'd bought the property, being pursued by the HOA for the fees. Not that (at least in this case) they had a legal basis for doing so, but it could still make the new owner's life miserable.
So, check with a lawyer. It really depends on when the lien was filed, what order it's in, possibly what your HOA documents say, what your local law is, and more.