fix DqlSelection::where with empty array

now the DQL was not parseable
Dao select supports indexBy