fixed query->nquerys to query->nquery