Madrid, Feb. 21 -- Real Sociedad sailed past Danish side Midtjylland with a 5-2 win to emerge 7-3 aggregate winners and ensure a place in the UEFA Europa League knockout stages.

The San Sebastian side went ahead after just five minutes on Thursday when Brais Mendez tapped into an empty net after a horrific error from the Midtjylland defense left him with an open goal.

Luka Sucic doubled the home side's lead soon afterwards after an assist from Ander Barrenetxea, but Barrenetxea gifted the Danish side a penalty in the 24th minute which Adam Buska scored.

Dario Osorio leveled the scores after 38 minutes when Buska controlled a cross to leave him with a simple finish. Sucic put Real Sociedad back in front on the stroke of halftime with...