Maybe round ligament pain? Ligaments stretching out and adjusting as baby grows? That can often show up during 2nd or 3rd trimester, and can REALLY hurt, even when you're not moving.
Definitely mention it to your OB/midwife next visit, and, whatever it is, I hope you get some relief soon!
All the best.