{"action":"created","comment":{"url":"https://api.github.com/repos/hananils/association_ui_selector/pulls/comments/26846043","id":26846043,"diff_hunk":"@@ -51,20 +82,25 @@ private function get($database, $field_id, $search, $max)\n             // Build where clauses\n             $where = array();\n             foreach ($columns as $column) {\n-                $where[] = \"`$column` LIKE '%$search%'\";\n+                $where[] = \"ed.`$column` LIKE '%$search%'\";\n             }\n \n             // Build query\n             $query = sprintf(\n-                \"SELECT * from sym_entries_data_%d WHERE %s%s;\",\n+                \"SELECT ed.* from tbl_entries_data_%d AS ed %s WHERE (%s) %s %s;\",\n                 $field_id,\n+                $joins,\n                 implode($where, \" OR \"),\n+                $whereFilters,\n                 $max\n             );\n+            \n         } else {\n             $query = sprintf(\n-                \"SELECT * from sym_entries_data_%d%s;\",\n+                \"SELECT ed.* from tbl_entries_data_%d AS ed %s WHERE 1 %s %s;\",","path":"content/content.query.php","position":82,"original_position":82,"commit_id":"8c9cf77274959847f6d5be4463d2f3b32f3003ff","original_commit_id":"8c9cf77274959847f6d5be4463d2f3b32f3003ff","user":{"login":"nitriques","id":771169,"avatar_url":"https://avatars.githubusercontent.com/u/771169?v=3","gravatar_id":"","url":"https://api.github.com/users/nitriques","html_url":"https://github.com/nitriques","followers_url":"https://api.github.com/users/nitriques/followers","following_url":"https://api.github.com/users/nitriques/following{/other_user}","gists_url":"https://api.github.com/users/nitriques/gists{/gist_id}","starred_url":"https://api.github.com/users/nitriques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitriques/subscriptions","organizations_url":"https://api.github.com/users/nitriques/orgs","repos_url":"https://api.github.com/users/nitriques/repos","events_url":"https://api.github.com/users/nitriques/events{/privacy}","received_events_url":"https://api.github.com/users/nitriques/received_events","type":"User","site_admin":false},"body":"Backtick here...","created_at":"2015-03-20T15:02:22Z","updated_at":"2015-03-20T15:02:22Z","html_url":"https://github.com/hananils/association_ui_selector/pull/44#discussion_r26846043","pull_request_url":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/hananils/association_ui_selector/pulls/comments/26846043"},"html":{"href":"https://github.com/hananils/association_ui_selector/pull/44#discussion_r26846043"},"pull_request":{"href":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44","id":31614606,"html_url":"https://github.com/hananils/association_ui_selector/pull/44","diff_url":"https://github.com/hananils/association_ui_selector/pull/44.diff","patch_url":"https://github.com/hananils/association_ui_selector/pull/44.patch","issue_url":"https://api.github.com/repos/hananils/association_ui_selector/issues/44","number":44,"state":"open","locked":false,"title":"Association Filters","user":{"login":"jonmifsud","id":859775,"avatar_url":"https://avatars.githubusercontent.com/u/859775?v=3","gravatar_id":"","url":"https://api.github.com/users/jonmifsud","html_url":"https://github.com/jonmifsud","followers_url":"https://api.github.com/users/jonmifsud/followers","following_url":"https://api.github.com/users/jonmifsud/following{/other_user}","gists_url":"https://api.github.com/users/jonmifsud/gists{/gist_id}","starred_url":"https://api.github.com/users/jonmifsud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonmifsud/subscriptions","organizations_url":"https://api.github.com/users/jonmifsud/orgs","repos_url":"https://api.github.com/users/jonmifsud/repos","events_url":"https://api.github.com/users/jonmifsud/events{/privacy}","received_events_url":"https://api.github.com/users/jonmifsud/received_events","type":"User","site_admin":false},"body":"Adds support for Association Filters when using the Association UI. The filters are provided through the symphony core in javascript, and are sent through ajax requests for data when using autocomplete.","created_at":"2015-03-20T13:45:03Z","updated_at":"2015-03-20T15:02:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b167c13a4dd9c122685425aa0f383161da833204","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44/commits","review_comments_url":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44/comments","review_comment_url":"https://api.github.com/repos/hananils/association_ui_selector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hananils/association_ui_selector/issues/44/comments","statuses_url":"https://api.github.com/repos/hananils/association_ui_selector/statuses/8c9cf77274959847f6d5be4463d2f3b32f3003ff","head":{"label":"jonmifsud:filters","ref":"filters","sha":"8c9cf77274959847f6d5be4463d2f3b32f3003ff","user":{"login":"jonmifsud","id":859775,"avatar_url":"https://avatars.githubusercontent.com/u/859775?v=3","gravatar_id":"","url":"https://api.github.com/users/jonmifsud","html_url":"https://github.com/jonmifsud","followers_url":"https://api.github.com/users/jonmifsud/followers","following_url":"https://api.github.com/users/jonmifsud/following{/other_user}","gists_url":"https://api.github.com/users/jonmifsud/gists{/gist_id}","starred_url":"https://api.github.com/users/jonmifsud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonmifsud/subscriptions","organizations_url":"https://api.github.com/users/jonmifsud/orgs","repos_url":"https://api.github.com/users/jonmifsud/repos","events_url":"https://api.github.com/users/jonmifsud/events{/privacy}","received_events_url":"https://api.github.com/users/jonmifsud/received_events","type":"User","site_admin":false},"repo":{"id":29541387,"name":"association_ui_selector","full_name":"jonmifsud/association_ui_selector","owner":{"login":"jonmifsud","id":859775,"avatar_url":"https://avatars.githubusercontent.com/u/859775?v=3","gravatar_id":"","url":"https://api.github.com/users/jonmifsud","html_url":"https://github.com/jonmifsud","followers_url":"https://api.github.com/users/jonmifsud/followers","following_url":"https://api.github.com/users/jonmifsud/following{/other_user}","gists_url":"https://api.github.com/users/jonmifsud/gists{/gist_id}","starred_url":"https://api.github.com/users/jonmifsud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonmifsud/subscriptions","organizations_url":"https://api.github.com/users/jonmifsud/orgs","repos_url":"https://api.github.com/users/jonmifsud/repos","events_url":"https://api.github.com/users/jonmifsud/events{/privacy}","received_events_url":"https://api.github.com/users/jonmifsud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonmifsud/association_ui_selector","description":"Association UI for Symphony: Selector","fork":true,"url":"https://api.github.com/repos/jonmifsud/association_ui_selector","forks_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/forks","keys_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/teams","hooks_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/hooks","issue_events_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/issues/events{/number}","events_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/events","assignees_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/assignees{/user}","branches_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/branches{/branch}","tags_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/tags","blobs_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/statuses/{sha}","languages_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/languages","stargazers_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/stargazers","contributors_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/contributors","subscribers_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/subscribers","subscription_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/subscription","commits_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/contents/{+path}","compare_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/merges","archive_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/downloads","issues_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/issues{/number}","pulls_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/pulls{/number}","milestones_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/milestones{/number}","notifications_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/labels{/name}","releases_url":"https://api.github.com/repos/jonmifsud/association_ui_selector/releases{/id}","created_at":"2015-01-20T17:11:46Z","updated_at":"2015-01-20T17:11:46Z","pushed_at":"2015-02-16T16:11:58Z","git_url":"git://github.com/jonmifsud/association_ui_selector.git","ssh_url":"git@github.com:jonmifsud/association_ui_selector.git","clone_url":"https://github.com/jonmifsud/association_ui_selector.git","svn_url":"https://github.com/jonmifsud/association_ui_selector","homepage":"","size":146,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hananils:master","ref":"master","sha":"8d03d7c1d800cbdc58bebf864e1c8310b3088e05","user":{"login":"hananils","id":545441,"avatar_url":"https://avatars.githubusercontent.com/u/545441?v=3","gravatar_id":"","url":"https://api.github.com/users/hananils","html_url":"https://github.com/hananils","followers_url":"https://api.github.com/users/hananils/followers","following_url":"https://api.github.com/users/hananils/following{/other_user}","gists_url":"https://api.github.com/users/hananils/gists{/gist_id}","starred_url":"https://api.github.com/users/hananils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hananils/subscriptions","organizations_url":"https://api.github.com/users/hananils/orgs","repos_url":"https://api.github.com/users/hananils/repos","events_url":"https://api.github.com/users/hananils/events{/privacy}","received_events_url":"https://api.github.com/users/hananils/received_events","type":"Organization","site_admin":false},"repo":{"id":20294293,"name":"association_ui_selector","full_name":"hananils/association_ui_selector","owner":{"login":"hananils","id":545441,"avatar_url":"https://avatars.githubusercontent.com/u/545441?v=3","gravatar_id":"","url":"https://api.github.com/users/hananils","html_url":"https://github.com/hananils","followers_url":"https://api.github.com/users/hananils/followers","following_url":"https://api.github.com/users/hananils/following{/other_user}","gists_url":"https://api.github.com/users/hananils/gists{/gist_id}","starred_url":"https://api.github.com/users/hananils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hananils/subscriptions","organizations_url":"https://api.github.com/users/hananils/orgs","repos_url":"https://api.github.com/users/hananils/repos","events_url":"https://api.github.com/users/hananils/events{/privacy}","received_events_url":"https://api.github.com/users/hananils/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hananils/association_ui_selector","description":"Association UI for Symphony: Selector","fork":false,"url":"https://api.github.com/repos/hananils/association_ui_selector","forks_url":"https://api.github.com/repos/hananils/association_ui_selector/forks","keys_url":"https://api.github.com/repos/hananils/association_ui_selector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hananils/association_ui_selector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hananils/association_ui_selector/teams","hooks_url":"https://api.github.com/repos/hananils/association_ui_selector/hooks","issue_events_url":"https://api.github.com/repos/hananils/association_ui_selector/issues/events{/number}","events_url":"https://api.github.com/repos/hananils/association_ui_selector/events","assignees_url":"https://api.github.com/repos/hananils/association_ui_selector/assignees{/user}","branches_url":"https://api.github.com/repos/hananils/association_ui_selector/branches{/branch}","tags_url":"https://api.github.com/repos/hananils/association_ui_selector/tags","blobs_url":"https://api.github.com/repos/hananils/association_ui_selector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hananils/association_ui_selector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hananils/association_ui_selector/git/refs{/sha}","trees_url":"https://api.github.com/repos/hananils/association_ui_selector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hananils/association_ui_selector/statuses/{sha}","languages_url":"https://api.github.com/repos/hananils/association_ui_selector/languages","stargazers_url":"https://api.github.com/repos/hananils/association_ui_selector/stargazers","contributors_url":"https://api.github.com/repos/hananils/association_ui_selector/contributors","subscribers_url":"https://api.github.com/repos/hananils/association_ui_selector/subscribers","subscription_url":"https://api.github.com/repos/hananils/association_ui_selector/subscription","commits_url":"https://api.github.com/repos/hananils/association_ui_selector/commits{/sha}","git_commits_url":"https://api.github.com/repos/hananils/association_ui_selector/git/commits{/sha}","comments_url":"https://api.github.com/repos/hananils/association_ui_selector/comments{/number}","issue_comment_url":"https://api.github.com/repos/hananils/association_ui_selector/issues/comments{/number}","contents_url":"https://api.github.com/repos/hananils/association_ui_selector/contents/{+path}","compare_url":"https://api.github.com/repos/hananils/association_ui_selector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hananils/association_ui_selector/merges","archive_url":"https://api.github.com/repos/hananils/association_ui_selector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hananils/association_ui_selector/downloads","issues_url":"https://api.github.com/repos/hananils/association_ui_selector/issues{/number}","pulls_url":"https://api.github.com/repos/hananils/association_ui_selector/pulls{/number}","milestones_url":"https://api.github.com/repos/hananils/association_ui_selector/milestones{/number}","notifications_url":"https://api.github.com/repos/hananils/association_ui_selector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hananils/association_ui_selector/labels{/name}","releases_url":"https://api.github.com/repos/hananils/association_ui_selector/releases{/id}","created_at":"2014-05-29T13:18:31Z","updated_at":"2014-10-15T15:35:52Z","pushed_at":"2015-03-20T13:45:04Z","git_url":"git://github.com/hananils/association_ui_selector.git","ssh_url":"git@github.com:hananils/association_ui_selector.git","clone_url":"https://github.com/hananils/association_ui_selector.git","svn_url":"https://github.com/hananils/association_ui_selector","homepage":"","size":775,"stargazers_count":12,"watchers_count":12,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44"},"html":{"href":"https://github.com/hananils/association_ui_selector/pull/44"},"issue":{"href":"https://api.github.com/repos/hananils/association_ui_selector/issues/44"},"comments":{"href":"https://api.github.com/repos/hananils/association_ui_selector/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/hananils/association_ui_selector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hananils/association_ui_selector/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/hananils/association_ui_selector/statuses/8c9cf77274959847f6d5be4463d2f3b32f3003ff"}}}}