{"action":"opened","issue":{"url":"https://api.github.com/repos/ChristianBeer/ProFTPd-Admin/issues/19","labels_url":"https://api.github.com/repos/ChristianBeer/ProFTPd-Admin/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/ChristianBeer/ProFTPd-Admin/issues/19/comments","events_url":"https://api.github.com/repos/ChristianBeer/ProFTPd-Admin/issues/19/events","html_url":"https://github.com/ChristianBeer/ProFTPd-Admin/issues/19","id":92080236,"number":19,"title":"Wrong SQL configuration","user":{"login":"paalg","id":2621435,"avatar_url":"https://avatars.githubusercontent.com/u/2621435?v=3","gravatar_id":"","url":"https://api.github.com/users/paalg","html_url":"https://github.com/paalg","followers_url":"https://api.github.com/users/paalg/followers","following_url":"https://api.github.com/users/paalg/following{/other_user}","gists_url":"https://api.github.com/users/paalg/gists{/gist_id}","starred_url":"https://api.github.com/users/paalg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paalg/subscriptions","organizations_url":"https://api.github.com/users/paalg/orgs","repos_url":"https://api.github.com/users/paalg/repos","events_url":"https://api.github.com/users/paalg/events{/privacy}","received_events_url":"https://api.github.com/users/paalg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-30T12:30:11Z","updated_at":"2015-06-30T12:30:11Z","closed_at":null,"body":"In the readme it says \r\n\"SQLNamedQuery           updatecount UPDATE \"login_count=login_count+1, last_login=datetime() WHERE userid='%u'\" users\"\r\n\r\nThe function datetime() is incorrect, you have to use \"NOW()\" instead.\r\n\r\nI was getting this error in my proftpd.log files because of this:\r\n mod_sql/4.3: unrecoverable backend error: (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '() WHERE userid='test'' at line 1\r\n"}}