diff --git a/api.asp b/api.asp index 018bfba..30cf0da 100644 --- a/api.asp +++ b/api.asp @@ -902,7 +902,7 @@ Sub GetRecordedIP() cmd.CommandText = "SELECT c.address FROM communications c " & _ "INNER JOIN machines m ON c.machineid = m.machineid " & _ "WHERE m.hostname = ? AND c.address LIKE '10.134.%' " & _ - "ORDER BY c.isprimary DESC, c.communicationid ASC LIMIT 1" + "ORDER BY c.isprimary DESC, c.comid ASC LIMIT 1" cmd.Parameters.Append cmd.CreateParameter("@hostname", 200, 1, 50, hostname) Set rs = cmd.Execute()