Syntax error, unexpected token AND, near to ' is_active=1 ORDER BY id desc LIMIT :APL0: OFFSET :APL1:', when parsing: SELECT [Post_comment].* FROM [Post_comment] WHERE blog_id= and is_active=1 ORDER BY id desc LIMIT :APL0: OFFSET :APL1: (118)