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Q9gHeTshw67v1KYBA5hjfPnp3msU2X1QpbCwXyLunkkAimou7RH0ERMbiU1UINpw5hrxjhRXfQgjV4ZVcE5V8c2Bz26Bi8uan5AA5bBv0hzNq585cf7HCM67pGX+1MeH8HMB28ggYQNahX33RdXSaMT1fzksm9mKLNCfzIkuJrCyUSpur5bHL91OIEFSdXK9fQcymCEYUMbPu0EFBhFGF57fWmAQjlA6yb86O3QPNE71zZgPCPaeEkA3p+Dgv8Qd2X3xwbAFdkMI4kgcLEnQhttIkjpz+LAiJ/Nkw9eTsc4mM=
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