So I sleep with a pillow in between my legs while sleeping on my left side at night

En

For the last week or so, I am noticing that I wake up in the middle of the night and my hips or my butt area hurts. Even I will switch to right side it still hurts. I have to sit down or stand up to make it disappear. What could I be doing wrong?