SELECT *
FROM london_stages
WHERE eventid IN (40363, 40378, 40383, 40386, 40390, 40395, 40397, 40417, 40424, 40432, 40435, 40447, 40453, 40458, 40466, 40678, 40690, 40713, 40718, 40791, 40855, 40906, 40932, 40945, 40988, 41124, 41147, 41204, 41337, 41499, 41512, 41538, 41548, 41551, 41566, 41687, 41724, 42233, 42273, 42319, 42351, 42538, 42553, 42606, 42650, 42658, 42730, 42781, 42907, 42927, 42998, 43019, 43092, 43254, 43292, 43302, 43312, 43358, 43363, 43373, 43397, 43471, 43550, 43565, 43681, 43725, 43808, 43865, 44269, 44401, 44418, 44438, 44592, 44615, 44921, 44940, 44960, 44977, 45017, 45245, 45251, 45432, 45463, 45732, 45836, 45970, 46298, 46324, 46368, 46384, 46398, 46628, 46808, 46818, 46823, 46826, 47058, 47313, 47327, 47341, 47356, 47362, 47363, 47366, 47368, 47373, 47374, 47412, 47414, 47426, 47429, 47477, 47873, 47964, 48024, 48149, 48451, 48458, 48479, 48489, 48519, 48527, 48538, 48546, 48576, 48660, 49587, 50359, 50382, 50429, 50507, 50509, 50511, 50514, 50523, 50528, 50537, 50542, 50558, 50570, 50698, 51032, 51098, 52424)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION