I thought I read somewhere that if a debt is sold to an outside party then the debt may no longer be valid?

Unfortunately I lost my job and fell behind on a debt. The debt has in turn been sold to another company.
I am pretty sure I read that when this happens the consumer has a right to no longer consider the debt valid.
Is this correct?
What are the specific laws regarding this?
23 answers 23