correct query. closes #1460
Merge pull request #1461 from craigh/ticket1460

correct query. closes #1460