title: Valid CMIS query
body: <p>I work with Alfresco and OpenCMIS and want get folder and documents.</p>
  
  <p>Query:</p>
  
  <pre><code>SELECT D.cmis:objectId, F.cmis:objectId 
  FROM cmis:folder AS F JOIN cmis:document AS D 
  WHERE IN_FOLDER('"+ folderId +"') 
  AND cmis:name like '%name%'"
  </code></pre>
  
  <p>but it doesn't work. Please help me write valid query.</p>