According to the International Association for the Study of Pain ( IASP ) , the term temporomandibular disorder ( TMD ) regards a subgroup of orofacial pain , the symptoms of which include pain or discomfort in the temporomandibular joint , ears , masticatory muscles and neck on one or both sides , as well as joint sounds , limited mandibular movements or mandibular deviation and difficulties chewing .