code: public function getCategoryById($id)
      {
          $select = $this->getSelect()->where(array(
              'id' => $id
          ));
  
          return $this->select($select)->current();
      }
docs: getCategoryById
  
  @param int $id
  @return CategoryInterface