There is a field \'noticeBy\' enum(\'email\',\'mobile\',\'all\',\'auto\',\'nothing\') NOT NULL DEFAULT \'auto\'. As it known ordering by ENUM field performs relative to its
You can define your order however you wish:
ORDER BY CASE noticeBy WHEN 'email' THEN 1 WHEN 'mobile' THEN 2 WHEN 'all' THEN 3 WHEN 'auto' THEN 4 ELSE 5 END
This will return the rows in the following order: email, mobile, all, auto, nothing.