left join tt_clients c on (c.id = l.client_id)
where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.client_id";
}
left join tt_clients c on (c.id = l.client_id)
where l.status = 1 and l.duration > 0 and l.user_id = $user_id $q_period group by l.client_id";
}