Finally convert books from using a static list to a list generated from the sites table.  1 new varaiable and then convert the static in clause to a dynamic one.
a few more fixes for the query and a sanity check so that if the new
multiselect was not used yet or has nothing entered the behavior is
the same as before.  This should make upgrading to the new method
safe.