getOne(array('where'=>'sid='.$sid.' and client='.$cid, 'asArray' => true)); } function getTagClientBySid($sid){ return $this->find(array('where'=>'sid='.$sid, 'asArray' => true)); } function getClientByTag($tag){ $sql = "select * from " . $this->_table . " as a left join CLD_staff as b on (a.sid=b.sid) where a.cid= '".$cid."' " ; $query = Doo::db ()->query ( $sql ); $result = $query->fetch (); return $result; } } ?>