rem: var query = "select SITE_ALIAS from AV_SITE where SITE_ISONLINE = 1 and SITE_ENABLEPING = 1 and  (SITE_LASTUPDATE > SITE_LASTPING or SITE_LASTPING is null)"; 
add: var query = "select name from AV_SITE where mode = 'online' and " + "SITE_ENABLEPING = 1 and  (SITE_LASTUPDATE > SITE_LASTPING or SITE_LASTPING is null)"; 
context: function pingUpdatedSites() {   var c = getDBConnection("antville");   var dbError = c.getLastError();   if (dbError) {      app.log("Error establishing DB connection: " + dbError);      return;   }   var query = "select SITE_ALIAS from AV_SITE where SITE_ISONLINE = 1 and SITE_ENABLEPING = 1 and  (SITE_LASTUPDATE > SITE_LASTPING or SITE_LASTPING is null)";   var rows = c.executeRetrieval(query);   var dbError = c.getLastError();   if (dbError) {      app.log("Error executing SQL query: " + dbError);      return;   }   while (rows.next()) {      var site = root.get(rows.getColumnItem("SITE_ALIAS"));      app.log("Notifying weblogs.com for updated site '" + site.alias + "' (id " + site._id + ")");      site.ping();   }   rows.release();   return;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/d274db390adc9b141e241911b7f449881ce0a0c5/Global.js/buggy/code/Global/Global.js