ORDER BY FIELD() query not working with $wpdb
|Reported by:||stoosh||Owned by:|
Trying to custom order a query using the FIELD() function, doesn't seem to work with the Wpdb::query method.
An example query is
SELET * FROM wp_table WHERE id in (9,4,1,2) ORDER BY FIELD(9,4,1,2)
The query executes but doesn't correctly order
Change History (2)
Note: See TracTickets for help on using tickets.