SELECT *
FROM london_stages
WHERE eventid IN (40041, 40043, 40045, 40047, 40049, 40050, 40054, 40056, 40058, 40060, 40062, 40064, 40066, 40068, 40070, 40072, 40074, 40076, 40078, 40080, 40082, 40084, 40086, 40088, 40090, 40092, 40094, 40096, 40098, 40102, 40104, 40106, 40111, 40113, 40115, 40117, 40127, 40129, 40134, 40139, 40141, 40148, 40164, 40169, 40175, 40178, 40258, 40262, 40264, 40266, 40269, 40288, 40294, 40322, 40366, 40371, 40410, 40533, 40534, 40536, 40540, 40543, 40544, 40545, 40546, 40548, 40549, 40550, 40552, 40555, 40556, 40559, 40560, 40616, 40629, 40633, 40687, 40694, 40815, 40827, 40832, 40874, 40969, 41023, 41027, 41030, 41033, 41035, 41041, 41044, 41049, 41050, 41053, 41056, 41058, 41059, 41061, 41062, 41064, 41065, 41069, 41073, 41080, 41089, 41091, 41092, 41094, 41095, 41096, 41097, 41100, 41104, 41146, 41155, 41195, 41218, 41274, 41488, 41504, 41518, 41592, 41597, 41600, 41606, 41616, 41623, 41630, 41634, 41636, 41648, 41651, 41664, 41665, 41667, 41696, 41708, 41812, 41814, 41818, 41823, 41826, 41831, 42178, 42182, 42190, 42251, 42252, 42257, 42263, 42589, 42602, 42671, 42760, 42765, 42797, 42819, 42943, 42983, 43048, 43052, 43059, 43256, 43319, 43343, 43356, 43364, 43377, 43379, 43383, 43389, 43403, 43422, 43433, 43909, 43916, 43946, 43953, 43984, 43999, 44016, 44503, 44517, 44526, 44527, 44532, 44557, 44560, 44563, 44576, 44581, 44586, 45059, 45080, 45092, 45613, 45617, 45641, 45649, 45685, 46185, 46191, 46201, 46204, 46211, 46219, 46228, 46230, 46236, 46240, 46241, 46248, 46249, 46254, 46256, 46258, 46759, 46762, 46764, 46768, 46778, 46785, 46786, 46792, 46801, 46805, 46810, 46812, 46813, 46816, 46856, 47350, 47353, 47370, 47376, 47380, 47383, 47385, 47386, 47387, 47388, 47423, 47424, 47912, 47927, 47952, 47957, 47965, 47969, 47976, 47980, 47990, 48445, 48454, 48466, 48472, 48474, 48478, 48480, 48482, 48487, 48496, 48497, 48515, 48526, 48530, 48532, 48533, 48995, 49142, 49166, 49175, 49178, 49182, 49665, 49675, 49679, 49683, 49688, 49691, 49698, 49699, 49706, 49707, 49712, 49720, 49724, 49725, 49726, 49734, 49736, 49738, 49740, 49741, 49746, 49748, 49750, 49752, 49753, 49864, 49868, 49918, 50251, 50256, 50260, 50271, 50279, 50284, 50286, 50287, 50291, 50296, 50297, 50302, 50303, 50307, 50314, 50317, 50318, 51306, 51330, 51618, 51851, 51873, 51877, 51927, 51929, 52405)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION