Possible STI?

okay so a few a months back i went to the dr because i thought i had appendicitis bc my lower right side was hurting. they did x-rays and everything to see if i had it but i didn't. the dr asked if i was sexually active and i told him yes and he asked me if i was scared it could be an STI bc i guess you have those symptoms with an STI. i had felt nauseous and my right lower side hurt for like a week straight and wouldn't stop hurting. the doctors gave me 8 pills and a shot in my butt. can anyone tell me what i had? and i think whatever it was i may have it again bc my lower right sides hurting again and i feel nauseous. but i haven't had sex since i went to the dr to get tested for appendicitis. i can't go to the dr again bc i don't want my mom to find out. please help
is there any type of OTC medicine i can take? i'm only 16 help!