Fixed invalid JPQL. #1019