ORDER BY and DISTINCT with different variables
SELECT DISTINCT with an undefined variable