fixed list$ when ids are passed;(drop of other options when building the...

... SQL select, like: limit$, sort$)
@ckiss please respect the indentation.