"WHERE conference_event.event_id=conference_chat_message_event.event_id AND conference_event.chat_room_id=:1)"
"WHERE conference_chat_message_event.time=t AND conference_chat_message_event.event_id=conference_event.event_id AND conference_event.chat_room_id=:1 "
"ORDER BY conference_event.event_id DESC LIMIT 1) "// Ensure to have only one event and the last id for the matching time
"WHERE id = :1 ",soci::use(chatRoomId);// Used to not get Empty chatroom
}
// Set last_message_id to the last timed message for all chat room
*dbSession.getBackendSession()<<"UPDATE chat_room SET last_message_id = "
"(SELECT COALESCE( (SELECT max(conference_event.event_id) as m "// max(conference_event.event_id) ensure to have only one event and the last id for the matching time