use FIELD SELECT * FROM products order by FIELD(id,59,47,28,29,20), id desc limit 50 Ordenando por valores de campo específicos com MySQL