我的桌子就像...
id Sub_id name path date
1 33 Sanjay Something here to all Some thing
2 33 Sanjay
3 34 Fariya
4 35 Neeraj
5 35 Neeraj
6 32 Mukesh
7 37 Ravi
8 32 Mukesh
9 32 Mukesh
10 32 Mukesh
当我使用此查询时-表名是画廊...
$sql="select * from (select * from gallery order by id desc 4) gallery group by Sub_id desc limit 4";
我需要这种格式
id Sub_id name path date
10 32 Mukesh Something here to all Some thing
7 37 Ravi
5 35 Neeraj
3 34 Fariya
请帮我...