fixed where clause in ddl triggers