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Lu/eFGzZ14rPN1g9CyeGssTaBhnRKgv8ibj6Yw15GmE6FSVTzIij2/MyGlO719oOjn4k/kGLCCnqDU318mYCFoYB9qWJJeshoQHR6uXwzQ/ktl8OLT4Zl+Q50EcVdyF4WY+GecweDaGKZFN2Db7HBD11qBoZhob8LefIZDv94CEFNRiLztEOLhJrZb8DRN4qAZpwYpn9MQGfRaohVbFRHI5P9Aj3ukrGT4myhPHa/iMQUK3WG7EUzTiy8zazGUGc1WaT2/7GP2ojiw0I5mPEPhcfu75pOXVFW+thcBvcQtS2xqF1H4=
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