id was ambiguous in Items.getItemById
needed to be items.id in the where clause