getField("id,name",true); } public function getNameById($id) { return M("MerchantMain","tab_")->where("id = '{$id}'")->getField("name"); } }