BUGFIX: When using JPQL starting with "from" the count query creation
fails.