I have a sore throat from a cold.

Literal

Cold [cause-で] throat [subject-が] hurts.

のどが痛い — standard expression for sore throat. で marks the cause.