library/Garp/Model/Db.php
public function fetchByAuthor($authorId, Zend_Db_Select $select = null) {
        $select = $select ?: $this->select();
        $select->where('author_id = ?', $authorId);

        $result = $this->fetchAll($select);
        return $result;
    }
public function fetchByAuthor($authorId, Zend_Db_Select $select = null) {
        $select = $select ?: $this->select();
        $select->where('author_id = ?', $authorId);

        $result = $this->fetchAll($select);
        return $result;
    }
public function fetchByAuthor ( $ authorId , Zend_Db_Select $ select = null ) { $ select = $ select ? : $ this -> select ( ) ; $ select -> where ( 'author_id = ?' , $ authorId ) ; $ result = $ this -> fetchAll ( $ select ) ; return $ result ; }
Fetch all records created by a certain someone.

@param int $authorId
@param Zend_Db_Select $select
@return Zend_Db_Table_Rowset_Abstract
Fetch all records created by a certain someone .