src/Dao/AbstractDao.php
protected function fetch( $sql, $params = null ) {
		$stmt = $this->dbh->prepare( $sql );
		$this->bind( $stmt, $params );
		$stmt->execute();
		return $stmt->fetch();
	}
protected function fetch( $sql, $params = null ) {
		$stmt = $this->dbh->prepare( $sql );
		$this->bind( $stmt, $params );
		$stmt->execute();
		return $stmt->fetch();
	}
protected function fetch ( $ sql , $ params = null ) { $ stmt = $ this -> dbh -> prepare ( $ sql ) ; $ this -> bind ( $ stmt , $ params ) ; $ stmt -> execute ( ) ; return $ stmt -> fetch ( ) ; }
Prepare and execute an SQL statement and return the first row of results.

@param string $sql SQL
@param array $params Prepared statement parameters
@return array First response row
Prepare and execute an SQL statement and return the first row of results .