public static function columnName($column)
    {
        list($tableName, $fieldName) = pluginSplit((string)$column);
        if (!$fieldName) {
            $fieldName = $tableName;
        }
        $fieldName = preg_replace('/\s{2,}/', ' ', $fieldName);
        list($fieldName, ) = explode(' ', trim($fieldName));

        return $fieldName;
    }
public static function columnName($column)
    {
        list($tableName, $fieldName) = pluginSplit((string)$column);
        if (!$fieldName) {
            $fieldName = $tableName;
        }
        $fieldName = preg_replace('/\s{2,}/', ' ', $fieldName);
        list($fieldName, ) = explode(' ', trim($fieldName));

        return $fieldName;
    }
public static function columnName ( $ column ) { list ( $ tableName , $ fieldName ) = pluginSplit ( ( string ) $ column ) ; if ( ! $ fieldName ) { $ fieldName = $ tableName ; } $ fieldName = preg_replace ( '/\s{2,}/' , ' ' , $ fieldName ) ; list ( $ fieldName , ) = explode ( ' ' , trim ( $ fieldName ) ) ; return $ fieldName ; }
Gets a clean column name from query expression.

### Example:

```php
EavToolbox::columnName('Tablename.some_column');
// returns "some_column"

EavToolbox::columnName('my_column');
// returns "my_column"
```

@param string $column Column name from query
@return string
Gets a clean column name from query expression .