protected function _error($sql){
		$params = compact('sql');

		return Filters::run($this, __FUNCTION__, $params, function($params) {
			list($code, $error) = $this->error();
			throw new QueryException("{$params['sql']}: {$error}", $code);
		});
	}
protected function _error($sql){
		$params = compact('sql');

		return Filters::run($this, __FUNCTION__, $params, function($params) {
			list($code, $error) = $this->error();
			throw new QueryException("{$params['sql']}: {$error}", $code);
		});
	}
protected function _error ( $ sql ) { $ params = compact ( 'sql' ) ; return Filters :: run ( $ this , __FUNCTION__ , $ params , function ( $ params ) { list ( $ code , $ error ) = $ this -> error ( ) ; throw new QueryException ( "{$params['sql']}: {$error}" , $ code ) ; } ) ; }
Throw a `QueryException` error

@param string $sql The offending SQL string
@filter
Throw a QueryException error