PHP function db::query() returns the result index.