Mattress

Hi has anyone had to buy a mattress because of hip and back pain and if they did can you recommend which one you chose and why .Im a side sleeper.