What could this have been?

Last night I woke up sometime in the middle of the night and the right side of my lower back all the way around to my lower belly down to my lady parts were seriously hurting Like it was a sharp sharp pain and it did it off and on for about 30mins-an hour. Any ideas? Or just not worry about it unless it keeps happening? I will be 33 weeks tomorrow.