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PMGbtU/ypE8HUJmhX0Z5U2tC0NSMamTafYjWxhyD3uy/2uyR9lJu3jttsF5isJ4V6tR5leMZxvQ2SJx5vmEoBJAQeK14LMtdbeiwUO6N/4+vIDGHfq0hjnsQMyNs2yZtbm26Uif/Idg8EFfUyHxd4lFNgDgzrrlb/V09nhxHCGlLYXebiHFI6kGSdqQHOI2L7aEpyEoXHmu6CQp8yzEqMToOBQPnXN0sk7YPlfubMODwdT/FlD0PV5LV0r+bKBhdovjo5qMrniZ/5gmrGbFSaLRCLmH+VIxk=
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