SELECT DISTINCT `ticket_id`,`id` FROM `trengo_messages` WHERE `channel_id` = '0' order by id desc Limit 5