As far as I can remember JPQL does not allow a path like qtProject.qryUser.varUserName. You have to explicitly join qtProject.qryUser with an alias and the use the path like alias.varUserName. At least that's what I always do.