Bug 25277: Don't specify a field in query if none passed