title: Incorrect parameter count in the call to native function 'DATE_FORMAT'
body: <p>Not sure how to fix this error </p>
  
  <blockquote>
    <p>Incorrect parameter count in the call to native function 'DATE_FORMAT'</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>SELECT 
      id, user_id, client_name, client_phone, 
      (SELECT name
       FROM users_permissions
       WHERE users_permissions.user_id = contracts.assistant_id) AS Consultant
  FROM 
      contracts
  WHERE 
      contracts_statuses IN (1, 2) 
      AND transaction_type = 'rent'
      AND DATE_FORMAT('%Y-%m') &gt; '2017-08'
  </code></pre>