If i enable the "show entries per category" setting in the archive sidebar plugin then Serendipity shows an odd posting number. In sum i have 7 postings in this blog but S9y outputs:
"September 2008 (12)"
That's wrong.
Here's the query from serendipity_fetchEntries():
Code: Select all
SELECT count(e.id) AS orderkey
FROM
serendipity_entries AS e
LEFT JOIN serendipity_entrycat ec
ON e.id = ec.entryid
LEFT JOIN serendipity_category c
ON ec.categoryid = c.categoryid
LEFT JOIN serendipity_authorgroups AS acl_a
ON acl_a.authorid = 1
LEFT JOIN serendipity_access AS acl_acc
ON ( acl_acc.artifact_mode = 'read'
AND acl_acc.artifact_type = 'category'
AND acl_acc.artifact_id = c.categoryid
)
WHERE e.timestamp >= 1220220000 AND e.timestamp <= 1222811999 AND isdraft = 'false' AND e.timestamp <= 1221819900 AND (
c.categoryid IS NULL
OR ( acl_acc.groupid = acl_a.groupid OR acl_acc.groupid = 0)
OR ( acl_acc.artifact_id IS NULL
)
)
ORDER BY timestamp DESC