Hip pain at 20 weeks

Bronwyn
The last couple of nights my hips have been aching at times during the night. Has anyone else had this? If so, did anything help? Did it last your whole pregnancy or was it just a phase?