Código SQL:
Ver original"SELECT phplist_linktrack_uml_click.messageid, phplist_user_user.id, phplist_user_user.email
FROM phplist_linktrack_uml_click
INNER JOIN phplist_user_user
ON phplist_linktrack_uml_click.userid=phplist_user_user.id
LEFT JOIN phplist_user_user_attribute attr_name ON attr_name.attributeid=0 AND attr_name.userid= phplist_user_user.id
LEFT JOIN phplist_user_user_attribute attr_tel ON attr_tel.attributeid=1 AND attr_tel.userid=
phplist_user_user.id
LEFT JOIN phplist_user_user_attribute attr_codcli ON attr_tel.attributeid=2 AND attr_codcli.userid= phplist_user_user.id
WHERE messageid = '$val'";
Sólo queda hacer que muestre los campos en el select....