SyntaxFix
Write A Post
Hire A Developer
Questions
As you've noticed, the WHERE clause doesn't allow you to use aggregates in it. That's what the HAVING clause is for.
WHERE
HAVING
HAVING t1.field3=MAX(t1.field3)