Necesitas usar CHAR_LENGTH
en lugar de LENGTH
SELECT a.id, a.post_id, a.body
FROM posts a INNER JOIN
(
SELECT post_ID, title, MAX(CHAR_LENGTH(body)) totalLength
FROM posts
GROUP BY post_ID, title
) b ON a.post_id = b.post_ID AND
a.title = b.title AND
CHAR_LENGTH(a.body) = b.totalLength
Es posible que desee ver la diferencia:CHAR_LENGTH( ) vs LONGITUD ( )