Anda harus menggunakan "ORDER BY FIELD ". Jadi, misalnya:
SELECT * FROM table WHERE id IN (118,17,113,23,72)
ORDER BY FIELD(id,118,17,113,23,72)
Anda harus menggunakan "ORDER BY FIELD ". Jadi, misalnya:
SELECT * FROM table WHERE id IN (118,17,113,23,72)
ORDER BY FIELD(id,118,17,113,23,72)