Fixes #17632 - Reports widget will not fail on ambiguous filter
A user with a filter on a joined table that has a host_id column (such as nics for example) will cause the report widget to break due to an ambiguous column name. This fix makes sure the columns use the table name and are correctly quoted.
(cherry picked from commit 25b627e79cc748503a1cd6fd4d6057d97dccc69b)
Related issues
Bug #17632: reports widget fails to load if user has a filter on a table that includes a 'host_id' column
Fixes #17632 - Reports widget will not fail on ambiguous filter
A user with a filter on a joined table that has a host_id column (such
as nics for example) will cause the report widget to break due to an
ambiguous column name. This fix makes sure the columns use the table
name and are correctly quoted.
(cherry picked from commit 25b627e79cc748503a1cd6fd4d6057d97dccc69b)