I'm trying to display items from my database, here's an example
user | 123 | abc
Jack | 0 | b
John | 0 | c
Doe | 1 | a
and how I want it displayed on site is something like this
user | 123 | abc
Doe | 1 | a
Jack | 0 | b
John | 0 | c
I want it orderying by abc
(abc=1) AND 123
(cat then dog then chicken)
Tips:
abc being either 0 or 1
123 being multiple things like: chicken, dog, cat etc..
The field isn't named 123 it's just an example and this is the query i'm using right now: SELECT * FROM users order by paid=1, animal='cat', animal='dog' It's bringing paid users up first but isn't ordering by animal