MySQL alias, variables and the WHERE clause
SELECT
\n @total := date_add(datefield, INTERVAL 1 YEAR) AS newDate
\nFROM
\n mytable
\n#WHERE
\n# @total > now() /*Invalid*/
\n#WHERE
\n# newDate > now() /*Invalid*/
\n @total := date_add(datefield, INTERVAL 1 YEAR) AS newDate
\nFROM
\n mytable
\n#WHERE
\n# @total > now() /*Invalid*/
\n#WHERE
\n# newDate > now() /*Invalid*/