fix ambiguous table name

was calling wrong table name to match against