[FIX] im_chat : forget part of sql request, and fix ambiguous column name