public static function createWhereForSerializedBlob($strField, array $arrValues, $strCondition = self::SQL_CONDITION_OR, $blnFallback = true)
    {
        $where = null;

        if (!in_array($strCondition, [self::SQL_CONDITION_OR, self::SQL_CONDITION_AND]))
        {
            return '';
        }

        foreach ($arrValues as $val)
        {
            if ($where !== null)
            {
                $where .= " $strCondition ";
            }

            $where .= $strCondition == self::SQL_CONDITION_AND ? "(" : "";

            $where .= "$strField REGEXP (':\"" . str_replace('\'', '',$val) . "\"')";

            if ($blnFallback)
            {
                $where .= " OR $strField=" . static::escapeString($val); // backwards compatibility (if field was no array before)
            }

            $where .= $strCondition == self::SQL_CONDITION_AND ? ")" : "";
        }

        return "($where)";
    }