Brett Meyer commented on an issue
Hibernate ORM / Bug HHH-7824
All MySQL5 dialects generate incorrect sql when multiple tables in from clause
Generated SQL when there is more than 1 table in the from clause immediately followed by an inner join results in incorrect SQL and this error:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'recipeingr0_.unit_id' in 'on clause'

Example generated SQL:
select
     recipeingr0_.itemId as col_0_0_,
     recipeingr0_.rec...