public function whereExists($SqlDriver, $Op = 'exists') { $Sql = $Op . " (\r\n" . $SqlDriver->getSelect() . "\n)"; // Add the inner select. $this->_where($Sql); // Add the named parameters from the inner select to this statement. foreach ($SqlDriver->_NamedParameters as $Name => $Value) { $this->_NamedParameters[$Name] = $Value; } return $this; }