I agree with Brian. You need to consult with a professional on this question. There are just certain questions that require a particular professional for and this is one of them. They should be able to give you good guidance on this question. If you need a name of a good CPA, ask family and friends who they use or who they would suggest.
Great question and the answer is it depends. You'll definitely want to consult a CPA on this one as each situation is unique. There is a form you can file with the IRS to show you were insolvent at the time of sale and in that case it's my understanding that you wouldn't
Only a CPA is going to be able to help you determine this and be wary of any agent/broker who says otherwise (unless they also happen to be a CPA).