@@ -194,7 +194,7 @@ public function get_groups_cohesion(){
194
194
}
195
195
196
196
public function get_mps_participation (){
197
- $ sql = 'SELECT cp.*, da.nameFirst, da.nameLast, da.civ, da.libelle AS libelle, da.libelleAbrev AS libelleAbrev, da.dptSlug, da.nameUrl, da.couleurAssociee, da.departementNom, da.departementCode
197
+ $ sql = 'SELECT cp.*, da.nameFirst, da.nameLast, da.civ, da.libelle AS libelle, da.libelleAbrev AS libelleAbrev, da.dptSlug, da.nameUrl, da.couleurAssociee, da.departementNom, da.departementCode, da.legislature AS legislature_last
198
198
FROM class_participation cp
199
199
LEFT JOIN deputes_last da ON cp.mpId = da.mpId AND da.legislature = cp.legislature
200
200
WHERE da.active AND cp.legislature = ? AND cp.votesN > 5
@@ -205,7 +205,7 @@ public function get_mps_participation(){
205
205
206
206
public function get_mps_participation_solennels ($ legislature ){
207
207
$ sql = 'SELECT cp.*, da.nameFirst, da.nameLast, da.civ, da.libelle AS libelle, da.libelleAbrev AS libelleAbrev, da.dptSlug, da.nameUrl, da.couleurAssociee, da.img,
208
- CONCAT(da.departementNom, " (", da.departementCode, ")") AS cardCenter
208
+ CONCAT(da.departementNom, " (", da.departementCode, ")") AS cardCenter, da.legislature AS legislature_last
209
209
FROM class_participation_solennels cp
210
210
LEFT JOIN deputes_last da ON cp.mpId = da.mpId AND da.legislature = cp.legislature
211
211
WHERE da.active AND cp.legislature = ?
0 commit comments