I have an array of IDs that are already sorted in descending order as to their relevancy, but I need to make a query to get the details of each ID.
How can I get the results to return so that they are in the order of my Where statement?
SELECT DISTINCT `content_object_set_instances`.`id` AS content_object_set_instance_id, `content_object_set_instances`.`title` AS content_object_set_instance_title, `content_object_set_instances`.`name` AS content_object_set_instance_name, `content_object_set_instances`.`description` AS content_object_set_instance_description FROM (`content_object_set_instances`) WHERE `content_object_set_instances`.`id` = 213 OR `content_object_set_instances`.`id` = 216 OR `content_object_set_instances`.`id` = 212
Currently they are returning as such:
ID | title | name | description
212 | Mr Spot | name... | description...
213 | Bamboo | name... | description...
216 | Beautious | name... | description...