Fixed call to fetchAll in Model::query()