Anyone who goes back to a company (without having an immediate exit strategy at least) that lays them off is an idiot.
Now that being said, I understand that you might "need the job" but when it comes down to it you better go back having one foot out the door.
Fuck these companies.