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DLzuhZRjTcBLJFiPk4uwYleW9SZT8f7s3oZCV3qHzD0VBMYWkq14GaEivdcdsX23tNZRyPMaRwxq8FYjIxQ3dOKdjJ5Aj9T/4Nq4kpP2nhur0GdOpvHjSk4op/QfLPwcj4VZ2cUqDjfq/pG5IDOtuYjTnfAHfzqdn7dR/Er2fdN+xplZEIoPSiV526i4/JtCGm1/xLjGrkvBvRpjeyrwiEJ21uD8Wlabwzvmce2GTUqypHXC3HUUpg6gNs4vjW9RnQH9Jr5xO3M4nzra5ZG08N7ZXKqzVPaxzayrjojR5cKVscXhwEkMRTmUaTUY=
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