Fixing getItemsWithLabelIn query

The query has currently returned any label for an entity with
the same identifiant of the item, regardless it's an item or a
property.