column_x of a mySQL database contains values that might exist in a php array.
I want to query the database and prioritise any rows where the value for column_x exists in the PHP array.
My initial idea was to select a column_y that is 1 if column_x exists in the php array and 0 otherwise and then ORDER BY column_y DESC. Is this possible? If so, how do I go about it? Or, is there a better way to go about this?
Thanks!