-----------------------------------TP3.2复合查询--------------------------------------------------------------------
$where['title'] = array('like', "%$search%");
$where['editor'] = array('like', "%$search%");
$where['_logic'] = 'or';
$map['_complex'] = $where; //复合查询
$count = M('News')->where($map)->count();