Prima faceva una cosa del tipo:
SELECT id1, id2 from LINKS;
per ogni id1 e id2 do
SELECT nome1 form nodetable where id=id1
SELECT nome2 form nodetable where id=id2
ref: https://github.com/ninuxorg/wnmap/commit/c778b0558d552b2fa33e0fd9595006188debb530