inscription
diver
This is OK:
SELECT id_membre, id_sortie, id_diver, licence, mail, actif
FROM inscription
WHERE id_sortie = 4071
When I add the LEFT JOIN it crashes:
SELECT id_membre, id_sortie, id_diver, licence, mail, actif
FROM inscription
WHERE id_sortie = 4071
LEFT JOIN diver ON inscription.licence = diver.licence;
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN diver ON inscription.licence = diver.licence LIMIT 0, 30' at line 3
Correct syntax :
SELECT id_sortie, id_diver, inscription.licence, mail, actif
FROM inscription
LEFT JOIN diver ON inscription.licence = diver.licence
WHERE inscription.id_sortie = 4071;