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senhbhIqATfDs1+AZxGW8tnS7UKHGynrbZ1wBnHZKKK3zVnhjwI5cSRSJGLWUUG+DS7/SA6hGExK5pOdfi+kgBq6NvZEeHKcnau9aMXr6o/avtZ7dChn0QjqUp1UjuzMpeD23NcbpsiVEZCOoSXstAFyFWUte7TNtchJGcB2vEA4smmDAM75KyrME3ThQt1plOVsv7L+v848WHZA//2MpZmyB4SxpYP4TryLOh0ZfFh0+JDgtInpOd/gMM61/UG+Eoeq8mi0954ohyjpEF/d1mWlRPmFpP8=
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