Improve error reporting
Validize item_ids from queries