Syntax error, unexpected token ), near to ') AND (ITECH\Datasource\Model\Article.id <> :id:)) AND (ITECH\Datasource\Model\Article.module = :module:)) AND (ITECH\Datasource\Model\Category.module = :module:)) AND (ITECH\Datasource\Model\Article.status = :status:) GROUP BY ITECH\Datasource\Model\Article.id ORDER BY ITECH\Datasource\Model\Article.hits DESC LIMIT 6', when parsing: SELECT ITECH\Datasource\Model\Article.id, ITECH\Datasource\Model\Article.title, ITECH\Datasource\Model\Article.alias, ITECH\Datasource\Model\Article.intro, ITECH\Datasource\Model\Article.image, ITECH\Datasource\Model\Article.hits, ITECH\Datasource\Model\Article.created_at, ITECH\Datasource\Model\Article.updated_at, ITECH\Datasource\Model\Article.type, ITECH\Datasource\Model\Article.show_comment, ITECH\Datasource\Model\Article.comment_count, ITECH\Datasource\Model\Article.status, ITECH\Datasource\Model\Article.ordering, ITECH\Datasource\Model\Article.created_by, ITECH\Datasource\Model\Article.updated_by, ITECH\Datasource\Model\Article.created_ip, ITECH\Datasource\Model\Article.module, ITECH\Datasource\Model\Category.id as category_id, ITECH\Datasource\Model\Category.name as category_name, ITECH\Datasource\Model\Category.slug as category_slug, ITECH\Datasource\Model\Admin.name as admin_name, ITECH\Datasource\Model\Admin.id as admin_id FROM [ITECH\Datasource\Model\Article] INNER JOIN [ITECH\Datasource\Model\Admin] ON ITECH\Datasource\Model\Admin.id = ITECH\Datasource\Model\Article.created_by INNER JOIN [ITECH\Datasource\Model\ArticleCategory] ON ITECH\Datasource\Model\ArticleCategory.article_id = ITECH\Datasource\Model\Article.id JOIN [ITECH\Datasource\Model\Category] ON ITECH\Datasource\Model\Category.id = ITECH\Datasource\Model\ArticleCategory.category_id WHERE ((((ITECH\Datasource\Model\ArticleCategory.category_id IN ()) AND (ITECH\Datasource\Model\Article.id <> :id:)) AND (ITECH\Datasource\Model\Article.module = :module:)) AND (ITECH\Datasource\Model\Category.module = :module:)) AND (ITECH\Datasource\Model\Article.status = :status:) GROUP BY ITECH\Datasource\Model\Article.id ORDER BY ITECH\Datasource\Model\Article.hits DESC LIMIT 6 (2036)