In reference to my previous question: http://stackoverflow.com/questions/3082817/one-table-two-column-mysql-query-question
The command: "SELECT hostname, GROUP_CONCAT(DISTINCT name) as name FROM comments GROUP BY hostname"
returns the expected results:
192.168.0.1 user1,user2
192.168.3.5 user3
The same table "comments" also has a "timestamp" field. How do I include the latest (most current) timestamp for each user using that ip?
Example:
192.168.0.1 user1-1277146500,user2-1277250087
192.168.3.5 user3-1237150048
I tried a number of variations of the command, but could only get all the timestamps, not the most current one...
also.. if possible it would be nice to convert the epoch timestamp to something more friendly before displaying it.