Jaxel
Well-known member
I have an array of IDs. I want to fetch from a table, all items that match those IDs... But I also want the results to match the order of the original array.
If I were to do this in pure MySQL, I would do the following:
Is something like this possible with the entity system?
If I were to do this in pure MySQL, I would do the following:
Code:
SELECT *
FROM ewr_medio_media
WHERE media_id IN('9292','9301','9290')
ORDER BY FIELD(media_id, '9292','9301','9290')
Is something like this possible with the entity system?