What does it mean when...

I have pain with peeing, my pee is sort of cloudy and there's a funky smell? I've had sex twice in the last week. I've never had this happen before. What could it mean?