Don't include sameas in selection criteria when
sameas isn't defined (prevents counting all items
in the database as a match to the current record)