most likely you are suffering from pharyngeal infection involving opening of eustechian tube (eustechian tube is a tubular connection bitbeen throat and ear) this tube opens in act of swallowing, yaening and walsalva. since you are having painfull swallowing and yawning thus pharyngitis
is most appropriate diagnosis. other possibility is of temporomandibular joint pain of affected side.you are adviced to take broad spectrum antibiotic like ciprofloxacin
(500mg) twice daily & tab voveran
(50mg) three times a day,for one weak.