Not sure how to fix this error
Incorrect parameter count in the call to native function 'DATE_FORMAT'
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') > '2017-08'