Update trigger.sql

fixed little bug in referencing