Syntax error, unexpected token ), near to ' ORDER BY status desc, sort desc, ctime desc LIMIT :APL0: OFFSET :APL1:', when parsing: SELECT [Liuxue\Wenda\Models\Topic].* FROM [Liuxue\Wenda\Models\Topic] WHERE topicType = 1 AND status in (1,2) AND (title like '%GRE%') OR title like '%GMAT%') ORDER BY status desc, sort desc, ctime desc LIMIT :APL0: OFFSET :APL1: (229)