title: Couchbase Node SDK Error: JSON unmarshalling error: No operator for name DistinctScan
body: <p>I am using Couchbase server(4.5 Enterprise) Node SDK(v2.3.0) to execute some N1ql.</p>
  
  <p>When I open couchbase web workbench to execut the following N1ql, all works fine.</p>
  
  <pre><code>SELECT meta().id, * FROM `Sample-Bucket` where owner != 'userid' AND recycled IS MISSING AND ANY g IN groups SATISFIES g = 'groupid' END
  </code></pre>
  
  <p>While when I use node sdk, </p>
  
  <pre><code>const QUERY  = 'SELECT meta().id, * FROM `Sample-Bucket` where owner != $userid AND recycled IS MISSING AND ANY g IN groups SATISFIES g = $groupid END'
  
  let query = n1ql.fromString(QUERY).adhoc(false);
  
      params = {
          userid: 'userid',
          groupid: 'groupid'
      };
  
  cluster.executeN1ql(query, params, (err, results) =&gt; {
  
      console.log(err);
  })
  </code></pre>
  
  <p>I receive the following error:</p>
  
  <pre><code>{ [ErrInternalError: Unexpected Database Error]
  status: 500,
  message: 'Unexpected Database Error',
  name: 'ErrInternalError',
  _trace: true,
  _cause: 
   { [Error: Unable to decode prepared statement - cause: Unrecognizable    prepared statement - cause: JSON unmarshalling error: No operator for name DistinctScan]
   requestID: '2d3d28f9-7298-4d4f-93f8-cd35aab04077',
   code: 4070,
   otherErrors: [] } }
  </code></pre>
  
  <p>Any ideas?</p>