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, 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, 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, 51340, 51397, 51688, 51847, 51964, 52132, 52528, 52539, 52556)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION