Looking for query where it shows alert count with custom property filter, something like this but it showing wrong numbers,
SELECT count(*) as AlertCount
FROM Orion.AlertActive aa, ORION.Nodes
JOIN Orion.NodesCustomProperties ON nodes.nodeid = NodesCustomProperties.nodeid
WHERE aa.AlertObjects.AlertConfigurations.Severity=2
AND
<NAME> = 'Custom Properties'