Doctrine 1

Statements with empty results are not correctly closed