Hi I'm making this way: SELECT $flex_datetime(timestamp) AS hodex,
count(DISTINCT `user`) FROM ( SELECT $flex_timestamp AS timestamp,`user`
FROM $log WHERE $filter AND (tunneltype = 'ssl-tunnel' OR tunneltype =
'ssl-web') AND `user` != 'N/A' GROUP BY...