SELECT *
FROM london_stages
WHERE eventid IN (39821, 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, 43290, 43303, 43315, 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, 47970, 48006, 48476, 48477, 48478, 48482, 48484, 48488, 48489, 48492, 48494, 48495, 48497, 48519, 51340)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION