$where['ex_account'] = array('like','%'.$p.'%');
$where['ex_nickname'] = array('like','%'.$p.'%');
$where['_logic'] = 'or';
$res = $db->where($where)->select();