Syntax error, unexpected token ), near to ' AND type = 2 ORDER BY updated_at DESC', when parsing: SELECT [MyApp\Model\Tags].* FROM [MyApp\Model\Tags] WHERE deleted = 0 AND (user_id = 29 OR user_id = ) AND type = 2 ORDER BY updated_at DESC (140)