Sometimes you just need to check whether your query has the right order and the way of order.
GROUP BY pp.id_product
FIELD(pp.id_product, 1600, 1870, 2300 );
This won't run until you add the waydirection (DESCDESC
or ASCASC
) of the ordering to the query.
GROUP BY pp.id_product
FIELD(pp.id_product, 1600, 1870, 2300 ) DESC;
This will do the trick as well without messing with the session and global settings of the server.