/**
  * Internal function for creating the where clause
  *
  * @param string $condition
  * @param mixed $value
  *            optional
  * @param string $type
  *            optional
  * @param boolean $bool
  *            true = AND, false = OR
  * @return string clause
  */
 protected function _where($condition, $value = null, $type = null, $bool = true)
 {
     if (count($this->_parts[EhrlichAndreas_Db_Sql::UNION])) {
         throw new EhrlichAndreas_Db_Exception("Invalid use of where clause with " . EhrlichAndreas_Db_Sql::SQL_UNION);
     }
     return parent::_where($condition, $value, $type, $bool);
 }