Clean your humidifier thoroughly and switch to distilled water instead of tap water. Cool mist humidifiers can actually make things worse if they're not maintained properly. Tap water contains minerals that get aerosolized when the mist is produced, and these particles irritate your throat and airways. You're basically breathing in mineral dust all night, which explains why your throat feels scratchy instead of better. Over time, the humidifier can also develop mold and bacteria if you're not emptying and cleaning it regularly, which adds another layer of irritation.
Run it through a full clean right now - empty any standing water, wipe down the tank and mist outlet, and refill with distilled water. If you don't have distilled water on hand, tap water filtered through a basic pitcher filter is better than nothing, though distilled is the real solution. After cleaning, give it a few nights and your throat should improve. Make sure you're also not running it constantly at maximum output - humidity should stay somewhere in the 40-60% range. Too much moisture can actually breed mold in your room and make respiratory irritation worse.
If you clean it properly and switch to distilled water but your throat still feels bad after a week or so, the humidifier itself might be defective or your room might just not need one. Some people's airways are sensitive to any kind of fine mist, but that's less common than the mineral dust issue.