I have a pretty simple SQL query but something is missing and I didn't find an answer for this problem yet. The thing is that I select some fields with several ids and I want the result to be ordered in this particular order.
The query is the following
SELECT `content`.*
FROM `content`
WHERE (user_id = "1" AND ( id = "4" OR id = "7" OR id = "5" OR id = "8" ))
The default order is "id ASC" (id is my primary key), but I want the order to be 4,7,5,8 in this particular case.
Any ideas?