I am seeing this every second almost in my database logs:
select g.groupid, g.name from groups g left join hosts_groups hg on g.groupid=hg.groupid and hg.hostid=100100000000171 where (g.groupid div 100000000000000) in (1) AND hg.hostid is NULL order by g.name,g.groupid;
Looks invalid since you can not compare a hostid number and also look for only ones that are NULL.
select g.groupid, g.name from groups g left join hosts_groups hg on g.groupid=hg.groupid and hg.hostid=100100000000171 where (g.groupid div 100000000000000) in (1) AND hg.hostid is NULL order by g.name,g.groupid;
Looks invalid since you can not compare a hostid number and also look for only ones that are NULL.
Comment