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Q0agdI4KqV7fszKLAUDZCQ+FI2/0Bkr5wcIhZ2sxM3FdHrUy7aQhD7dm/7xj03AoTS4dkbJbn2I3j4FUznBQ2u5j9LtJYg+dtb+1KLeKanGBiZUIQMr7qBXibs9r+O5mQ4TChs63LeS7aRhb8borc19hIMoJJ+hq66I7xo+mAUVSx72pAmYTbC9oMU3z4i9atLRqQzEIeGANuggvzwJioiI0VSp4JThLljPt0Ulos4F8+9oHyleMAKAj+olmVfqdzebsUYHPCvC2m0Xeyr+FocZoIrvcnXxiW9SBVUbi8=
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