Is it possible to specify an arbitrary order for a MySQL SELECT statement? E.g.,
SELECT
SELECT * FROM table_name WHERE id IN (1, 3, 2, 9, 7) ORDER BY (
Check out mysql's ORDER BY FIELD. I think it will do exactly what you want.