Received the following error message when I tried use the Mark All Read button on the main forum page:
- * warning: pg_query(): Query failed: ERROR: syntax error at or near "h" LINE 1: DELETE h ^ in /export/drupal/includes/database.pgsql.inc on line 139.
* user warning: query: DELETE h FROM history AS h INNER JOIN term_node AS tn ON (h.nid = tn.nid) INNER JOIN term_data AS td ON (td.tid = tn.tid) WHERE h.uid = 37 AND td.vid = 1 in /export/drupal/sites/all/modules/advanced_forum/advanced_forum.module on line 1097.
* warning: pg_query(): Query failed: ERROR: duplicate key value violates unique constraint "history_pkey" in /export/drupal/includes/database.pgsql.inc on line 139.
* user warning: query: INSERT INTO history (uid, nid, timestamp) SELECT DISTINCT 37, n.nid, 1286531555 FROM node AS n INNER JOIN term_node AS tn ON n.nid=tn.nid INNER JOIN node_comment_statistics AS ncs ON ncs.nid = n.nid INNER JOIN term_data AS td ON tn.tid = td.tid WHERE (n.created > 1283939555 OR ncs.last_comment_timestamp > 1283939555) AND td.vid = 1 in /export/drupal/sites/all/modules/advanced_forum/advanced_forum.module on line 1110.