Specifying column names flask sqlalcamy

The following works

    posts = BlogPost.query.with_entities(
        BlogPost.id, BlogPost.title, BlogPost.subtitle, BlogPost.img_url, 
        User.id, User.name
    )

But the following does not

    posts = BlogPost.query(
        BlogPost.id, BlogPost.title, BlogPost.subtitle, BlogPost.img_url, 
        User.id, User.name
    )

Cant work out why? I thought both were suposed to be equivelent.

I actualy want to do this partly so I can have a column alius, so

    posts = BlogPost.query(
        BlogPost.id, BlogPost.title, BlogPost.subtitle, BlogPost.img_url, 
        User.id, User.name.label("username")
    )

I think questions concerning specific libraries should be addressed to those library forums for better help, cause I don’t think everyone is totally familiar flask and sqlalchemy here.

OK thanks, the only suport chanel I can find is sqlalchemy/community - Gitter, is that the best option or is there anyware else I could try.

You could try that one for now.