In the Akismet moderation queue (i.e. admin/content/akismet) I see this error:
* user warning: Unknown column 'COMMENT_NOT_PUBLISHED' in 'where clause' query: SELECT COUNT(*) AS cnt FROM comments c LEFT JOIN akismet_spam_marks s ON s.content_id = c.cid AND s.content_type = 'comment' WHERE (c.status = COMMENT_NOT_PUBLISHED) in /var/www/DRUPAL-5/html/includes/database.mysql.inc on line 167.
* user warning: Unknown column 'COMMENT_PUBLISHED' in 'where clause' query: SELECT COUNT(*) AS cnt FROM comments c LEFT JOIN akismet_spam_marks s ON s.content_id = c.cid AND s.content_type = 'comment' WHERE (c.status = COMMENT_PUBLISHED) in /var/www/DRUPAL-5/html/includes/database.mysql.inc on line 167.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | akismet-query-errors.patch.txt | 1004 bytes | sillygwailo |
Comments
Comment #1
sillygwailoThe attached patch fixes (or rather, avoids) the above error and another one, quoted below:
Comment #2
drewish commentedgreat, simple fix for it. i've committed it to DRUPAL-5 and HEAD.
Comment #3
(not verified) commented