ERROR: 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 'AND section='blog'   AND status='APPROVED'' at line 4
ERROR SQL: SELECT COUNT(*) AS commentcount 
  FROM comments 
 WHERE contentid= 
   AND section='blog'   AND status='APPROVED'
Bagage