xx SELECT session_id, sessions.soc_database, sqluser, sqlpass, dossier_status, session_status, pseudo, user_id, dossiers.dossier_id /* , persons_profils.person_profil_code */ FROM activgest.sessions LEFT JOIN activgest.dossiers ON sessions.soc_database = dossiers.soc_database /* LEFT JOIN soc_database.persons ON sessions.user_id=persons.person_id AND */ /* LEFT JOIN persons_profils ON persons.person_profil_id=persons_profils.person_profil_id */ WHERE session_id='' AND ip_address= '3.238.225.8' AND session_status='O' xx