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Xujo6H9Wihvykl542gdz1LTKA21rOoJCgIju7Ii60XvHry9bXWia9WYJTykiqy6i/L2r+kfutDg9ImaRdNR1bEU6BbzCadyUvu9AFodswHShVV1Z9joTxAxy+DhjQLqmV3DolVo3Nt1ok8EJ8gqfdLisSHAq+He7qzk/zHXPrHOSQy2dhMVIIA/rte4HmSmf/Qj73l9NhpUoZJ48RJwp4KvE7lVH+Zl0PRsy9EpqKi6l5qgXZvcScspP81ik4WFDaJi/1Ja5ZzL7r5D9cXwZ/15wDro5cjdhSoqZPAmA=
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