Doctors and UTI

Hannah
I've been having painful urination for a few days now and I've had it before which turned to a kidney infection, since I've had painful urination a few times (comes and goes) but not as bad as when I had kidney infection. I think it could be a UTI and want to get something prescribed for it, but my parents don't know I'm having sex and I don't want them to find out via the doctors. I just want some advice really, do doctors ask about sexual intercourse when seeing about UTIs, and can they be caused from anything else?