The above code returns the records in ASC order by ID (i.e. 10, 15, 20). I want it to return the records in the order of the ids in the array (i.e. 20, 10, 15).
Without doing a foreach loop on the id array and performing a query on each id (to run 3 separate queries in this case) does anyone know of an easier way?