Add query for bug 1217734
Remove extra print statement