When I got hip pain years ago it was related to my lower back, which was inflamed and pushing on the nerve due to tight hamstrings putting pressure on my lower back muscles. It sounds bizarre but hamstring exercises (especially after any exercise) sorted it out.