SELECT DISTINCT `ticket_id`,`id` FROM `trengo_messages` WHERE `channel_id` = '0' order by id desc Limit 5HHAASELECT * FROM `trengo` WHERE `ticket_id` = '770554788'
UPDATE `trengo_messages` SET `channel_name`='',`channel_id`='' WHERE `ticket_id` = '770554788'HHAASELECT * FROM `trengo` WHERE `ticket_id` = '770554788'
UPDATE `trengo_messages` SET `channel_name`='Kloozz Berlin',`channel_id`='' WHERE `ticket_id` = '770554788'