Postgres is unable to identify mixed case column names unless they
        are quoted.

def get_timestamp_column(expression, column_name):
        """Postgres is unable to identify mixed case column names unless they
        are quoted."""
        if expression:
            return expression
        elif column_name.lower() != column_name:
            return f'"{column_name}"'
        return column_name