--- mqtt/src/pubmqtt.c 2011/12/16 02:09:20 1.1.2.17 +++ mqtt/src/pubmqtt.c 2012/01/27 15:05:38 1.2 @@ -160,7 +160,7 @@ mqtt_rtlm_fini_session(sl_config *cfg, sqlite3 *sql, c return -1; } snprintf(szStmt, sizeof szStmt, "DELETE FROM %s WHERE ConnID = '%s' AND Username = '%s' " - "AND RemoteHost LIKE '%s';", str, user, connid, host); + "AND RemoteHost LIKE '%s';", str, connid, user, host); if (sqlite3_prepare_v2(sql, szStmt, strlen(szStmt), &stmt, NULL)) { MQTT_RTLM_LOG(sql);