SELECT *
FROM london_stages
WHERE eventid IN (40040, 40042, 40044, 40046, 40048, 40059, 40071, 40093, 40099, 40121, 40135, 40140, 40149, 40173, 40179, 40181, 40382, 40846, 41652, 41653, 41654, 41655, 41656, 41657, 41658, 41660, 41662, 41663, 41666, 41669, 41671, 41672, 41674, 41678, 41680, 41682, 41685, 41686, 41718, 41723, 42168, 42171, 42175, 42183, 42186, 42191, 42195, 42199, 42205, 42206, 42211, 42214, 42217, 42221, 42225, 42229, 42238, 42248, 42306, 42430, 42456, 42760, 42762, 42765, 42769, 42775, 42777, 42783, 42785, 42787, 42788, 42791, 42795, 42797, 42798, 42799, 42800, 42803, 42805, 42807, 42808, 42810, 42811, 42812, 42814, 42815, 42816, 42817, 42818, 42819, 42820, 42821, 42822, 42823, 42825, 42826, 42827, 42828, 42829, 42830, 42831, 42832, 42837, 42839, 42841, 42842, 42843, 42844, 42846, 42848, 42850, 42851, 42853, 42884, 42914, 43015, 43399, 43402, 43407, 43415, 43423, 43437, 43969, 44011, 44012, 44015, 44017, 44019, 44021, 44023, 44024, 44025, 44508, 44512, 44519, 44528, 44545, 44577, 44579, 44583, 44585)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION