Any advice?

So my next period isn’t due for 17 days, I haven’t had sex since 2 cycles ago.

Yesterday my wee started to smell and it was painful. And tonight I had light brown stuff in my underwear what’s wrong with me