Shooting pain in bum during sex

During sex I get very sharp shooting pains through my bum when in certain positions, so much so that I have to stop and move before continuing. I've only been having sex for 3 months so I'm not sure what to think. Any ideas?
Thank you.