From 7c13442f1d8e3c219f3d095738b60c1f3ff5e998 Mon Sep 17 00:00:00 2001
From: Ben Coleman <b.coleman@accelerateddesign.com>
Date: Thu, 6 Oct 2011 13:10:44 -0400
Subject: [PATCH] Postgresql Compatibility fix.

---
 includes/bulkupdate.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/includes/bulkupdate.inc b/includes/bulkupdate.inc
index 860f1a7..e5f0786 100644
--- a/includes/bulkupdate.inc
+++ b/includes/bulkupdate.inc
@@ -204,7 +204,7 @@ function linkintel_bulkupdate_links($limit_override = 0, $clear = FALSE) {
   $args[] = variable_get('linkintel_bulkupdate_autogen_limit', 10);
 
   $sql = "
-    SELECT DISTINCT n.nid
+    SELECT DISTINCT n.nid, p.last_autogen
     FROM {node} n
     LEFT JOIN {linkintel_page} p ON p.nid = n.nid
     WHERE n.type IN ($placeholders)
-- 
1.7.6.msysgit.0

