EW 520 then LA 5745 at Barcelona
Cologne → Barcelona → Málaga
Timetable, Barcelona time
16:50EW 520 from Cologne at the gate
11:45LA 5745 to Málaga leaves the gate
18 h 55 apart on the timetable, overnight
LA 5745 leaves 18 h 55 after EW 520 arrives on the timetable: more than half a day, so not a connection we count.