In modules/trigger.module on line 95, a database query is used to get the "short name" of a module from the system table. It is badly formed:

    $info = db_select('system')
      ->condition('name', $module)
      ->execute()
      ->fetchField();

It should be:

    $info = db_select('system', 's')
      ->fields('s', array('info'))
      ->condition('name', $module)
      ->execute()
      ->fetchField();

I have address this in the following issue because that issue is dependent on this issue: #324183: Better Access Control in Custom Triggers

I am marking this as a duplicate, but wanted to make sure it is seen as a separate issue. I can create two patches, but that would seem a bit unnecessary to me.