{"action":"created","issue":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/442","labels_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/442/comments","events_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/442/events","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/442","id":85821120,"number":442,"title":"SQL error: 'column reference \"id\" is ambiguous'","user":{"login":"Hedde","id":1533552,"avatar_url":"https://avatars.githubusercontent.com/u/1533552?v=3","gravatar_id":"","url":"https://api.github.com/users/Hedde","html_url":"https://github.com/Hedde","followers_url":"https://api.github.com/users/Hedde/followers","following_url":"https://api.github.com/users/Hedde/following{/other_user}","gists_url":"https://api.github.com/users/Hedde/gists{/gist_id}","starred_url":"https://api.github.com/users/Hedde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hedde/subscriptions","organizations_url":"https://api.github.com/users/Hedde/orgs","repos_url":"https://api.github.com/users/Hedde/repos","events_url":"https://api.github.com/users/Hedde/events{/privacy}","received_events_url":"https://api.github.com/users/Hedde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-06T23:11:02Z","updated_at":"2015-06-08T07:02:16Z","closed_at":null,"body":"I'll look into this tomorrow but since the update to 2.2.0 I've noticed this issue on sentry;\r\n\r\n    ProgrammingError at /app/model/1/\r\n    column reference \"id\" is ambiguous\r\n    LINE 1: SELECT (CASE WHEN id='1' THEN 0 END) AS \"ordering\", \"...\r\n\r\nIt complains about validate_values(), as I said I'll update this ticket later, but it occurs when saving inlines that have autocomplete fields"},"comment":{"url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/comments/109885282","html_url":"https://github.com/yourlabs/django-autocomplete-light/issues/442#issuecomment-109885282","issue_url":"https://api.github.com/repos/yourlabs/django-autocomplete-light/issues/442","id":109885282,"user":{"login":"Hedde","id":1533552,"avatar_url":"https://avatars.githubusercontent.com/u/1533552?v=3","gravatar_id":"","url":"https://api.github.com/users/Hedde","html_url":"https://github.com/Hedde","followers_url":"https://api.github.com/users/Hedde/followers","following_url":"https://api.github.com/users/Hedde/following{/other_user}","gists_url":"https://api.github.com/users/Hedde/gists{/gist_id}","starred_url":"https://api.github.com/users/Hedde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hedde/subscriptions","organizations_url":"https://api.github.com/users/Hedde/orgs","repos_url":"https://api.github.com/users/Hedde/repos","events_url":"https://api.github.com/users/Hedde/events{/privacy}","received_events_url":"https://api.github.com/users/Hedde/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T07:02:16Z","updated_at":"2015-06-08T07:02:16Z","body":"I've tried to overrule the behaviour using super and adding the column prefix, but it also required distinct statement to remove duplicate results"}}