Joint pain could have a strange sleep disorder link a study finds