To see the problem go to this page on my site,
sim-x.net/index.php/simulators-region.html
Near the bottom there is a field called "Simulator Maker". Pick any one other than "TRU Simulation+Training" and see how the page returns the database results using ARI DataTables module. However, not when "TRU Simulation+Training" is selected.
This is what the query is set to inside ARI module,
SELECT
LocRegion as Region,
COUNT(DISTINCT uSimID) AS Count
FROM Simulators
WHERE
MarkForDeletion <> "1"
AND
({$REQUEST:vOrganization|empty:""} = '' OR Organization LIKE CONCAT('%',{$REQUEST:vOrganization|empty:""},'%'))
AND
({$REQUEST:vEngMaker|empty:""} = '' OR EngMaker LIKE CONCAT({$REQUEST:vEngMaker|empty:""},'%'))
AND
({$REQUEST:vSimType|empty:""} = '' OR SimType LIKE CONCAT('%',{$REQUEST:vSimType|empty:""},'%'))
AND
({$REQUEST:vACFamily|empty:""} = '' OR ACFamily LIKE CONCAT('%',{$REQUEST:vACFamily|empty:""},'%'))
AND
({$REQUEST:vACType|empty:""} = '' OR ACType LIKE CONCAT('%',{$REQUEST:vACType|empty:""},'%'))
AND
({$REQUEST:vYear|empty:""} = '' OR InServiceDate LIKE CONCAT('%',{$REQUEST:vYear|empty:""},'%'))
AND
({$REQUEST:vFMSMaker|empty:""} = '' OR FMSMaker LIKE CONCAT({$REQUEST:vFMSMaker|empty:""},'%'))
AND
({$REQUEST:vSimMaker|empty:""} = '' OR SimMaker LIKE CONCAT({$REQUEST:vSimMaker|empty:""},'%'))
AND
({$REQUEST:vVisMaker|empty:""} = '' OR VisMaker LIKE CONCAT({$REQUEST:vVisMaker|empty:""},'%'))
AND
({$REQUEST:vACMaker|empty:""} = '' OR ACMaker LIKE CONCAT({$REQUEST:vACMaker|empty:""},'%'))
AND ({$REQUEST:vACClass|empty:""} = '' OR ACClass LIKE CONCAT({$REQUEST:vACClass|empty:""},'%'))
AND
({$REQUEST:vQualLevel|empty:""} = '' OR QualLevel1 LIKE CONCAT('%',{$REQUEST:vQualLevel|
empty:""},'%') OR QualLevel2 LIKE CONCAT('%',{$REQUEST:vQualLevel|
empty:""},'%') OR QualLevel3 LIKE CONCAT('%',{$REQUEST:vQualLevel|
empty:""},'%'))
AND
({$REQUEST:vRegApprovals|empty:""} = '' OR Regulator1 LIKE CONCAT('%',{$REQUEST:vRegApprovals|empty:""},'%') OR Regulator2 LIKE CONCAT('%',{$REQUEST:vRegApprovals|empty:""},'%') OR Regulator3 LIKE CONCAT('%',{$REQUEST:vRegApprovals|empty:""},'%') OR Regulator4 LIKE CONCAT('%',{$REQUEST:vRegApprovals|empty:""},'%') OR Regulator5 LIKE CONCAT('%',{$REQUEST:vRegApprovals|empty:""},'%'))
GROUP BY
LocRegion
ORDER BY
Count DESC
The vSimMaker $REQUEST variable is the one for Simulator Maker.
Thanks.
Ken