Query failed: exception 'PDOException' with message 'SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "AND" LINE 1: SELECT count(*) AS totalresults FROM posts p AND (date_part(... ^' in /data/sites/chicklit.nl/shared/dataobject/db.php:430 Stack trace: #0 /data/sites/chicklit.nl/shared/dataobject/db.php(430): PDOStatement->execute(Array) #1 /data/sites/chicklit.nl/shared/dataobject/db.php(109): DB_Query->__construct(Object(PDOStatement), Array) #2 /data/sites/chicklit.nl/shared/dataobject/dataobject.php(687): DB->query('SELECT count(*)...', Array) #3 /data/sites/chicklit.nl/htdocs/application/model/post.php(546): MVDatabaseStatement->execute() #4 /data/sites/chicklit.nl/htdocs/modules/base/code/blogListCode.php(74): Post::findAllByCategoryID(5, 3, Object(DataPagingObject), '2012', '', 0) #5 /data/sites/chicklit.nl/htdocs/modules/base/code/blogListCode.php(225): blogList->fillModule() #6 /data/sites/chicklit.nl/htdocs/library/core/template.php(406): blogList->load() #7 /data/sites/chicklit.nl/htdocs/library/core/template.php(226): Template->createModule('{@module=blogLi...', '