Можете да използвате подизбор
select * from table where client_id in
(select distinct client_id from table order by client_id limit 5)
Можете да използвате подизбор
select * from table where client_id in
(select distinct client_id from table order by client_id limit 5)