code: public function getMessageById($messageId)
      {
          $select = $this->getSelect()
                         ->where(array($this->messageIDField => $messageId));
          return $this->select($select)->current();
      }
docs: getMessageById
  
  @param int $messageId
  @return MessageInterface