protected function _safeQuote($str) { $str = $this->_dbh->quote($str); if (!strstr($str, ':')) { return $str; } // workaround: replace '\0:D\0' to CONCAT('\0:','D\0') return "CONCAT(" . join(":','", explode(':', $str)) . ")"; }