public function queryAndFetch($sql, Closure $handler)
	{
		$sth = $this->query($sql);

		while (($row = $sth->fetch(PDO::FETCH_ASSOC)))
			$handler($row);
	}
public function queryAndFetch($sql, Closure $handler)
	{
		$sth = $this->query($sql);

		while (($row = $sth->fetch(PDO::FETCH_ASSOC)))
			$handler($row);
	}
public function queryAndFetch ( $ sql , Closure $ handler ) { $ sth = $ this -> query ( $ sql ) ; while ( ( $ row = $ sth -> fetch ( PDO :: FETCH_ASSOC ) ) ) $ handler ( $ row ) ; }
Execute a raw SQL query and fetch the results.

@param string $sql Raw SQL string to execute.
@param Closure $handler Closure that will be passed the fetched results.
Execute a raw SQL query and fetch the results .