UTI, help!

So today while horseback riding (advance English lesson with jumping) I kept having the udge to pee. Like I had to get off my horse during the lesson to pee.
​Sometimes I get like this on and off, just having the urge to pee but hardly anything comes out, for a day or two.
​Could this be a UTI? Could it be a VERY mild UTI, and that's why it's not constant. Please help!