/frontends/php/include/classes/api/services/CTrigger.php
'SELECT t.triggerid,t.description,t.expression'. ' FROM triggers t'. ' WHERE '.dbConditionInt('t.triggerid', $triggerIds). 'AND t.templateid IS NOT NULL',
Missing space before last AND.
If the frontend is modified to use query without apostrophe symbols, this causes syntax error.