SELECT *
FROM london_stages
WHERE eventid IN (39794, 39804, 39809, 39825, 39851, 39856, 39865, 39879, 39897, 39911, 39918, 39929, 39939, 40110, 40119, 40124, 40133, 40138, 40147, 40152, 40161, 40166, 40171, 40177, 40186, 40191, 40200, 40206, 40215, 40220, 40229, 40241, 40246, 40255, 40260, 40268, 40273, 40280, 40293, 40317, 40321, 40346, 40351, 40365, 40380, 40394, 40404, 40409, 40414, 40423, 40429, 40434, 40451, 40482, 40490, 48991, 49005, 49010, 49019, 49024, 49029, 49049, 49059, 49070, 49078, 49093, 49106, 49108, 49115, 49118, 49121, 49124, 49331, 49336, 49341, 49346, 49355, 49360, 49423, 49437, 49447, 49460, 49463, 49476, 49481, 49488, 49491, 49505, 49510, 49514, 49518, 49532, 49551, 49571, 49576, 49581, 49590, 49605, 49610, 49617, 49633, 49647, 49661, 49673, 49681, 49689, 49697, 49884, 49889, 49898, 49903, 49908, 49913, 49927, 49936, 49941, 49950, 49955, 49964, 49969, 49976, 49981, 49990, 49995, 50039, 50049, 50090, 50154, 50187, 50236, 50249, 50255, 50258, 50261, 50266, 50269, 50274, 50281, 50431, 50436, 50445, 50518, 50527, 50532, 50541, 50547, 50557, 50560, 50569, 50589, 50598, 50612, 50617, 50624, 50636, 50672, 50677, 50710, 50720, 50729, 50803, 50810, 50852, 50860, 50863, 50868, 51010, 51019, 51025, 51034, 51039, 51055, 51062, 51079, 51176, 51183, 51188, 51195, 51219, 51238, 51245, 51264, 51269, 51286, 51305, 51315, 51320, 51334, 51346, 51352, 51361, 51389, 51393, 51398, 51409, 51414, 51422, 51429, 51594, 51599, 51622, 51632, 51646, 51660, 51674, 51679, 51689, 51695, 51726, 51738, 51744, 51751, 51756, 51763, 51768, 51775, 51795, 51839, 51852, 51857, 51862, 51880, 51891, 51896, 51905, 51910, 51915, 51945, 51965, 51974, 51979, 51990, 51995, 51998, 52006, 52014, 52287, 52292, 52301, 52327, 52356, 52368, 52380, 52387, 52392, 52406, 52416, 52435, 52445, 52469, 52474, 52502, 52517, 52530, 52538, 52546, 52549, 52554, 52562, 52570, 52578)
GROUP BY eventid
ORDER BY eventdate ASC
OPTION