Code: Select all
Warning: sqlite_query() [function.sqlite-query]: near "DISTINCT": syntax error in /opt/share/www/cherokee/devblog/serendipity/include/db/sqlite.inc.php on line 233
bool(false) string(1376) "SELECT count(DISTINCT 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 >= 1228089600 AND e.timestamp <= 1230767999 AND isdraft = 'false' AND e.timestamp <= 1228738200 AND ( c.categoryid IS NULL OR ( acl_acc.groupid = acl_a.groupid OR acl_acc.groupid = 0) OR ( acl_acc.artifact_id IS NULL ) ) " Query failed: problem with query