SELECT max(date) as m, ... WHERE date = m; [download]
In reply to Re^3: More MySQL woes by moritz in thread More MySQL woes by cosmicperl