Removed debugging of generated query