SQL request with case in order by throws "ORDER BY term does not match any column in the result set"
SQL request with case in order by throws "(1) 1st ORDER BY term does not match any column in the result set"