SELECT *
FROM london_stages
WHERE eventid IN (39988, 39989, 39990, 39995, 39996, 39999, 40000, 40001, 40003, 40004, 40005, 40007, 40008, 40010, 40011, 40012, 40013, 40014, 40474, 40476, 40478, 40480, 40483, 40484, 40486, 40488, 40491, 40492, 40494, 40502, 40505, 40515, 40524, 40532, 40538, 40541, 40542, 40551, 40557, 40736, 40748, 40750, 40752, 40765, 40772, 40777, 40870, 40905, 40922, 40925, 40928, 40933, 40951, 40956, 40960, 40965, 41041, 41050, 41056, 41059, 41061, 41089, 41091, 41412, 41435, 41447, 41508, 41513, 41518, 41520, 41527, 41529, 41532, 41542, 41544, 41547, 41548, 41557, 41562, 41567, 41661, 41714, 41755, 41781, 41846, 42113, 42149, 42216, 42221, 42236, 42254, 42322, 42682, 42792, 42812, 42868, 42911, 43244, 43277, 43290, 43303, 43315, 43387, 43401, 43848, 43969, 44057, 44071, 44473, 44481, 44506, 44538, 44566, 44570, 44580, 45084, 45611, 46109, 46193, 46202, 46205, 46208, 46209, 46212, 46223, 46235, 46571, 46609, 46652, 46713, 46729, 47249, 47380, 47386, 47552, 48006, 48476, 48477, 48478, 48482, 48484, 48488, 48489, 48492, 48494, 48495, 48497, 48519, 48695, 48699, 48736, 49123, 49128, 49130, 49145, 49150, 49151, 49155, 49156, 49158, 49169, 49171, 49172, 49177, 49181, 49183, 49726, 49877, 49975, 50237, 50238, 50239, 50873, 51097, 51099, 51101, 51104, 51107, 51110, 51112, 51114, 51116, 51121, 51124, 51128, 51130, 51138, 51142, 51156, 51203, 51340, 51397, 51539, 51688, 51847, 51904, 51964, 52132, 52410, 52528, 52539, 52556)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION