title: The SQL query contains a malformed ending
body: <p>I got the following error when the server tried to execute the SQL request.</p>
  
  <p>Please, I'd like to know what is incorrect.</p>
  
  <pre><code>Exception Description: Syntax error parsing [SELECT t FROM Trackings t GROUP BY t.dateTrackings WHERE EXISTS (SELECT DISTINCT tr.dateTrackings from Trackings tr )].
  </code></pre>