Scope ID check to table name so we can use it with other scopes