protected function _getTokenFromSqlWhere($from, $fieldName)
    {
        $lsDb = $this->getSourceDatabase();
        $tokField = $lsDb->quoteIdentifier($fieldName);

        foreach (str_split($from) as $check) {
            $checks[] = 'LOCATE(' . $lsDb->quote($check) . ', ' . $tokField . ')';
        }

        return '(' . implode(' OR ', $checks) . ')';
    }
protected function _getTokenFromSqlWhere($from, $fieldName)
    {
        $lsDb = $this->getSourceDatabase();
        $tokField = $lsDb->quoteIdentifier($fieldName);

        foreach (str_split($from) as $check) {
            $checks[] = 'LOCATE(' . $lsDb->quote($check) . ', ' . $tokField . ')';
        }

        return '(' . implode(' OR ', $checks) . ')';
    }
protected function _getTokenFromSqlWhere ( $ from , $ fieldName ) { $ lsDb = $ this -> getSourceDatabase ( ) ; $ tokField = $ lsDb -> quoteIdentifier ( $ fieldName ) ; foreach ( str_split ( $ from ) as $ check ) { $ checks [ ] = 'LOCATE(' . $ lsDb -> quote ( $ check ) . ', ' . $ tokField . ')' ; } return '(' . implode ( ' OR ' , $ checks ) . ')' ; }
Creates a where filter statement for tokens that do not
have a correct name and are in a tokens table

@param string $from The tokens that should not occur
@param string $fieldName Name of database field to use
@return string
Creates a where filter statement for tokens that do not have a correct name and are in a tokens table