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an7IMLREHNTs95qEPmXP4ZoKRCDJA2io5rmPocnz9kn0Pb5QfVLSLI8zAZEZP2RZuaoQ7DbM4/GU8JYGMyvPNU7HIX+5Lo9NFYX8jTvRW7gt+O+3KuqiDRHudzS3xwAELvOtzUA/QhGvdwJezdJnQpB87hFnmdn7KL4fDBzFDthgam/pPO+ryEIMHkNXUpPBBBzvt3wFwUW0QUGFn77U+jDg1S+oh9NrUFyyVSNx+Bg7F1vztr4jEGpb77gAVDNGftfqRwITNYwD9sLUXRsVY6N41Df+8XPuHzljPTgRE4iLrBtfxPSDW5l0U=
1 - SELECT et.id, et.residence, et.bottin, et.emploi, et.msss, (eev.dateFin > NOW()) as vedette FROM emplois_temp et
LEFT JOIN envois_eer_emplois_vedette eev ON eev.emploi = et.id AND eev.dateFin > NOW()
LEFT JOIN residences r2 ON r2.id = et.residence WHERE et.bottin = AND (r2.emplois_masques != '1' OR r2.emplois_masques IS NULL) AND
((SELECT desapprouve FROM emplois e WHERE e.id = et.emploi AND e.datePublication <= NOW()) = '0')
AND (SELECT affiche FROM emplois e WHERE e.id = et.emploi AND e.datePublication <= NOW()) = '1'
AND (
et.residence in (select res_id from utilisateurs where res_id > 0)
OR
et.bottin in (select serv_id from utilisateurs where serv_id > 0)
OR
et.msss in (select msss_id from utilisateurs where msss_id > 0)
OR
r2.groupe in (select res_groupe_id from utilisateurs where res_groupe_id > 0)
)
GROUP BY et.id
LIMIT 100