ORDER is a reserved word in SQL (as in ORDER BY). JPA generates and uses SQL internally. It's also a reserved work in JPQL, I think, which may be why the query compiler didn't know to use an escape mechanism that allows getting around that.
I'd recommend that you name your table ORDERS. I think in fact, that using the plural form was a shop standard for one place I worked.
I'm going to be a "small government" candidate. I'll be the government. Just me. No one else.