Fix query with limit. found no result bug.