SELECT *
FROM london_stages
WHERE eventid IN (12977, 16975, 40282, 40285, 40289, 40292, 40295, 40297, 40302, 40305, 40308, 40340, 40353, 40355, 40358, 40360, 40367, 40372, 40403, 40413, 40422, 40438, 40450, 40574, 40758, 40761, 40763, 41776, 41779, 41781, 41784, 41786, 41788, 41790, 41793, 41795, 41800, 41802, 41804, 41807, 41833, 41853, 41866, 41887, 41903, 41918, 42111, 42127, 42293, 42324, 42394, 42484, 42735, 43072, 43342, 44852, 44866, 45626, 45628, 45631, 45635, 45638, 45640, 45648, 45686, 46224, 46228, 46240, 46242, 46248, 46254, 46258, 46578, 46637, 46899, 46901, 46903, 46907, 46911, 46915, 47440, 47724, 48039, 48045, 48051, 48076, 48086, 48260, 48439, 48575, 48634, 48640, 48642, 48645, 48654, 48656, 48664, 48667, 48669, 48727, 48735, 48744, 48755, 48819, 49066, 49088, 49147, 49150, 49158, 49413, 49493, 49570, 49642, 49674, 49728, 49740, 49746, 50136, 50191, 50231, 50250, 50332, 50422, 50616, 50719, 50792, 50817, 50826, 50838, 50840, 50850, 50870, 50900, 51292, 51383, 51445, 51469, 51598, 51601, 51605, 51607, 51610, 51613, 51615, 51619, 51621, 51627, 51631, 51636, 51639, 51641, 51662, 51803, 51859, 51879, 51953, 51988, 52004, 52013, 52021, 52026, 52035, 52041, 52045, 52052, 52245, 52258, 52261, 52266, 52593)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION