I have a fairly simple SQL query, but something is missing, and I have not yet found an answer to this problem. The thing is, I select multiple fields with multiple identifiers, and I want the result to be ordered in this particular order.
The request is as follows
SELECT `content`.*
FROM `content`
WHERE (user_id = "1" AND ( id = "4" OR id = "7" OR id = "5" OR id = "8" ))
The default 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?
source
share