Check that where clause doesn't select multiple records