It is not clear what you want. Given this data:
t_uid url title screen_name 1 http://google.com/ Google bob 2 http://google.com/ Google Search bob 3 http://google.com/ Google tom
what results do you expect? If you want to:
http://www.google.com '???' 'bob,tom' 2
then you can make a SELECT DISTINCT
subquery to remove duplicates (which you put instead of FROM twl_links
).
If you want to
http://www.google.com '???' 'bob,tom' 3
then you can do GROUP_CONCAT(DISTINCT screen_name)
to get this.
Note that in all cases, the returned header is ambiguous (if there is no N: 1 mapping between the URL and the header, that is, if each URL has only one separate header)
FYI, it looks like you have redundant and inaccessible data due to lack of normalization.
source share