public function formatProfileMessage($message)
    {
        $sqlStart = strpos($message, '(') + 1;
        $sqlEnd = strrpos($message, ')');
        $sqlLength = $sqlEnd - $sqlStart;
        $message = substr($message, $sqlStart, $sqlLength);
        $message = strtr($message, array(
            ' FROM ' => "\nFROM ",
            ' VALUES ' => "\nVALUES ",
            ' WHERE ' => "\nWHERE ",
            ' ORDER BY ' => "\nORDER BY ",
            ' GROUP BY ' => "\nGROUP BY ",
            ' LIMIT ' => "\nLIMIT ",
            ' AND ' => "\n\tAND ",
            ', ' => ",\n\t ",
        ));
        if (strpos($message, '. Bound with ') !== false) {
            list($query, $params) = explode('. Bound with ', $message);
            $binds = array();
            $matchResult = preg_match_all("/(?<key>[a-z0-9\.\_\-\:]+)=(?<value>[\d\.e\-\+]+|''|'.+?(?<!\\\)')/ims", $params, $paramsMatched, PREG_SET_ORDER);
            if ($matchResult) {
                foreach ($paramsMatched as $paramsMatch)
                    if (isset($paramsMatch['key'], $paramsMatch['value']))
                        $binds[':' . trim($paramsMatch['key'], ': ')] = trim($paramsMatch['value']);
            }
            $message = strtr($query, $binds);
        }
        return strip_tags($this->getTextHighlighter()->highlight($message), '<div>,<span>');
    }