Martin C has the right idea. Dairy products in general tend to make you produce too much phlegm.
If you've got a cold/sore throat and HAVE to sing, I find Vocalzones (over the counter at the chemists) a great aid in getting through it. Although resting your voice is even better.