SELECT *
FROM london_stages
WHERE eventid IN (39564, 39823, 39873, 39894, 40025, 40043, 40070, 40115, 40150, 40162, 40164, 40169, 40178, 40187, 40196, 40198, 40201, 40204, 40207, 40211, 40213, 40216, 40218, 40223, 40225, 40227, 40230, 40232, 40235, 40253, 40256, 40258, 40264, 40266, 40269, 40271, 40275, 40278, 40281, 40284, 40304, 40322, 40325, 40352, 40386, 40424, 40427, 40449, 40563, 40564, 40567, 40569, 40577, 40579, 40597, 40601, 40605, 40607, 40609, 40610, 40612, 40614, 40618, 40621, 40623, 40625, 40627, 40641, 40643, 40645, 40648, 40652, 40654, 40657, 40659, 40662, 40666, 40680, 40685, 40687, 40690, 40707, 40710, 40716, 40718, 40722, 40725, 40728, 40731, 40733, 40735, 40737, 40740, 40747, 40754, 40769, 40771, 40774, 40776, 40780, 40783, 40786, 40794, 40796, 40806, 40808, 40812, 40815, 40818, 40820, 40841, 40847, 40851, 40855, 40861, 40869, 40872, 40875, 40879, 40881, 40883, 40888, 40893, 40899, 40901, 40904, 40919, 40937, 40942, 40947, 40952, 40959, 40961, 40964, 40969, 40973, 40979, 40982, 41001, 41116, 41118, 41121, 41129, 41138, 41193, 41240, 41322, 41360, 41488, 41541, 41561)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION