Jira issue originally created by user darkangel:
```$qb->addSelect('(SELECT COUNT(tp2) FROM TeamPlayer tp2 WHERE tp2.team = t) AS test');
$qb->andWhere('test > 3');```
[Semantical Error] line 0, col 186 near 'test > 3 ORDER': Error: 'test' does not point to a Class.
Comment created by @beberlei:
Assigned to Guilherme
Comment created by @guilhermeblanco:
Fixed since commit 6bbf2d9
Issue was closed with resolution "Fixed"
Merged into 2.1
Merged into 2.1.x