/** * * @param int $recipientUid * @return int */ public function fetchNumberByRecipientUid($tokenId) { return $this->_db->fetch("SELECT count(*) as count " . " FROM notification WHERE tokenId = %d AND isNew = 1", $this->token)->count; }