This is actually a duplicate of HHH-7475. I commented there but I guess I get no response because it was closed.
The issue arise when using Database Platform SQL Server and there is a column name that starts with "from".
I have committed a test case and a fix here: d9d3f43
SQL Server 2012