Uper leg pain

Angelica

I'm 17 weeks pregnant and I notice when I lay on my back for too long my hip and buttocks area get really sore and it's so painful to move my leg. It happens one leg at a time. Anyone know what that could be