Fixes the id-select-query option.
Puts the option declaration in the correct place and gives it a default value.