diff --git a/src/hooks/dhcp/mysql_cb/mysql_query_macros_dhcp.h b/src/hooks/dhcp/mysql_cb/mysql_query_macros_dhcp.h index bb823d539e..c3bd66380d 100644 --- a/src/hooks/dhcp/mysql_cb/mysql_query_macros_dhcp.h +++ b/src/hooks/dhcp/mysql_cb/mysql_query_macros_dhcp.h @@ -413,7 +413,7 @@ namespace { "INNER JOIN " #table_prefix "_option_def_server AS a" \ " ON d.id = a.option_def_id " \ "INNER JOIN " #table_prefix "_server AS s " \ - " ON (a.server_id = s.id) OR (a.server_id = 1) " \ + " ON a.server_id = s.id " \ "WHERE (s.tag = ? OR s.id = 1) " #__VA_ARGS__ \ " ORDER BY d.id" #endif