Código PHP:
select ts,id_mac_cliente,alerta,mac,ip_cliente,port,hash,id_nodo,Nodo.ip as ipnodo,ip.nombre as nombre_cliente,mac_cliente.mac as mac,mac_cliente.ip_cliente as ip_cliente,mac_cliente.port as port from mac_cliente left join ip on mac_cliente.ip_cliente=ip.ip inner join Nodo on mac_cliente.id_nodo=Nodo.idNodo where port='16' and id_nodo='23' group by hash;