MDL-30545 - messagelib: use $DB->sql_concat()