wow, I'm sorry, just not sure. If the soil is still moist, it could be a vine borer. I don't see any kind of disease. Have you seen any bugs? A vine borer could cause it to wilt like that. One day fine, the next day, gone. They usually kill the plant. I would go ahead and harvest the squash on it. Keep us up to date.