php - MySQL Query - select distinct showing wrong results -


im wondering if me.

i have hundreds of people uploading images site, each upload has own row in database data created, user id, images name etc etc etc.

what want display last 3 users upload images problem being if user uploads more pics, row added database users id can show last 3 rows.

i have following statement, doesnt seem working properly

select distinct * kicks group uid order created desc limit 3 

i wondering if point me out im going wrong.

cheers

sorry, should have added sample data, ok

id | uid | created |

195 | 33 | 2012-03-06 12:32:54
196 | 33 | 2012-03-06 12:35:23
197 | 34 | 2012-03-06 13:09:31
198 | 19 | 2012-03-08 10:37:21
199 | 33 | 2012-03-09 21:04:04

select distinct uid kicks order created desc limit 3 want.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -