fixed libibase query.c