MartinThoma/LaTeX-examples — pull request #9 by taikano (2013-07-30 09:18:21+00:00)
Title: MAX in WHERE not possible

You cannot use MAX() in a WHERE clause, instead use a subquery.

The ORDER BY is also unneeded, because we only select the maximum. So what to order, there is only one number (even if multiple entries with the same number).