OK, I lied. I really want to do this db(query).select(*fields,left=left,orderby=orderby)
where left and orderby are also variables.
db(query).select(*fields) works OK.
However,
db(query).select(*fields,left=left,orderby=orderby)
gives a syntax error just before the left clause:
left=left,
^
SyntaxError: invalid syntax.
When I spell out the fields in the select clause, the left clause
doesn't give the syntax error.

