Terrible Hip pain while sleeping!!

Mandy • I am 34 pregnant w my second. A baby boy. My daughter, who is 4, was born a preemie and thus I'm a NICU Mom.
Last night I barely slept since my hips hurt so bad it seamed the whole area hurt and even the part I was laying on. 
Can a pregnancy pillow help with this and if so what kind is reccomended? It hurt so bad.