No valid database connection You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
GROUP BY
comments.itemID' at line 11 SQL=SELECT
content.id AS id,
COUNT(comments.itemID) AS count
FROM
jos_k2_items AS content
LEFT JOIN
jos_k2_comments AS comments
ON comments.itemID = content.id
WHERE
comments.published
AND ( )
GROUP BY
comments.itemID
;