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E8n59bC5lRX8xWS4kITfrmgCJERNpqb19caRWfd5W2qsUlGdzPUZxW/dag5b9gGw91Q9QCMikOetF+Rnsdx7AU+zbq+R9mn7VOqSWtiWXkn+K17+Qg79QJZW8vLM4oz7kEG7jKriXuzkFB2pIiX6zJfyIbdn/jgB1iesyH5ixnpCM123u9Rap3SNmMyjjQDSAzo8+7G+KGNQ+QhhKV6VE97q5xaoP4tr73R5rp3jnSzyYHFVTQi2H0t0eGRRHbEY0LRsj+Dxmr0UHr0Dofl1HtR2kg0maANYSr4hGgb+xM5R0PnDamIyq+vF++4Ge2F6mOtA+JEU+Pcj7z80jMkawnnVOgqf5CRSI5EUFj7FWG5zBsGTDZcsSE7iIPOpUbK8/aCkHde5GKTDv0UxrEMW1DK6mCGPwyNefFefb943hVs1jGE+fXrkNXC377qndUmX4AiYztlReoq2Xj9EQYWVo/m3i50mRyCxL+KH8wfNAEiMNopCqmUe6yLE/Z/g840SaPX0bnTcv/qVx4QIp9yFsHMG+SUYG72A5OeKPisj8VgU1lZbi/T0MzNo2ySWqMqq+5q1JFMDSQUGmr5uAdmzb3Z02NF5jVWjVJWuVzM4IeYphJiK+/PckW3Ll7QIGWXUwQKM/hIEZo=
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 (SELECT groupe FROM residences r WHERE r.id = et.residence AND r.emplois_masques = '0') = AND (SELECT confidentiel FROM emplois e WHERE e.id = et.emploi AND e.datePublication <= NOW()) = '0' 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
ORDER BY (SELECT datePublication FROM emplois e WHERE e.id = et.emploi) DESC LIMIT 100