protected function getCountCommonCompileFiltersString($sColumn, $mValue, $bIsQuery)
    {
        if (is_object($mValue) && ($mValue instanceof \Closure)) {
            $mValue = $mValue();
        }

        $oDb = Factory::service('Database');
        if ($bIsQuery) {
            $aBits = [$mValue];
        } elseif (!is_array($mValue)) {
            $aBits = [
                strpos($sColumn, '`') === false ? $oDb->escape_str($sColumn, false) : $sColumn,
                '=',
                $oDb->escape($mValue),
            ];
        } else {
            $sOperator = ArrayHelper::getFromArray(0, $mValue);
            $sValue    = ArrayHelper::getFromArray(1, $mValue);
            $bEscape   = (bool) ArrayHelper::getFromArray(2, $mValue, true);
            $aBits     = [
                $oDb->escape_str($sColumn, false),
                $sOperator,
                $bEscape ? $oDb->escape($sValue) : $sValue,
            ];
        }

        return trim(implode(' ', $aBits));
    }