uid timestamp
1 1242420497
1 1243534661
1 1243534858
1 1243611312
1 1243611511
3 1244817764
3 1244819093
1 1244749446
I have this table, and I am lookng to grab the row that has the highest time stamp. I tried using
SELECT uid,max(timestamp) FROM `node_revisions` WHERE nid=51
but that returned
uid timestamp
1 1244819093
which has the wrong uid as you can see. How would I make it grab the uid from the correct row? thanks