SELECT n.nomin as name, count( DISTINCT cl.id ), count( DISTINCT con2.id )
FROM `ci_nomin` AS n
LEFT OUTER JOIN `ci_nomin_groups` as ng2 ON ( n.id = ng2.nomin_id )
LEFT OUTER JOIN `ci_group_cont` as gc2 ON ( ng2.group_id = gc2.group_contes_id )
LEFT OUTER JOIN `ci_contes` as con2 ON ( gc2.contes_id = con2.id )
LEFT OUTER JOIN `ci_clubs` as cl2 ON ( con2.id_club = cl2.id )
GROUP BY n.nomin