From the SELECT after the WITH clause, - after the word FROM insert "maxes AS o JOIN" (without the quotes) - remove the word LEFT - change the word ON to WHERE - change the word WHERE to AND
From the SELECT after the WITH clause, - after the word FROM insert "maxes AS o JOIN" (without the quotes) - remove the word LEFT - change the word ON to WHERE - change the word WHERE to AND