public function getFieldByColumn($column, $table = null)
    {
        // TODO: 2 columns can have the same name in case of joined fields
        if (isset($this->columnFieldMap[$column])) {
            return $this->columnFieldMap[$column];
        }
        return null;
    }