Uti or sti?

So I’ve suddenly been getting the desperate urge to wee but when I went only a dribble came out but really hurt as it came out. I had sex yesterday but i don’t know if that has any relevance. There was a bit of blood like the tiniest bit which could be from anything but still alarmed me. Does anyone know what this is I need help ASAP