forum "mark all as read"

When I click on the "mark all as read" button on the forum I get this error message:

* 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 = 574 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 574, n.nid, 1292627818 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 > 1290035818 OR ncs.last_comment_timestamp > 1290035818) AND td.vid = 1 in /export/drupal/sites/all/modules/advanced_forum/advanced_forum.module on line 1110.

I don't know if this is where to report this, but thought I would mention it.