case
when length(m.topic)>20 then substr(m.topic,0,20)||'...'
else m.topic
end as topic
case
when length(m.topic)>20 then substr(m.topic,0,20)||'...'
else m.topic
end as topic