Erreur MySQL : Unknown column 'carnet' in 'where clause'
Requête originale : SELECT up.*, tc.name as city, tdl.name as level, s.libelle as structure, s.logo, s.id_categorie FROM user_profile up LEFT JOIN city c ON c.city = up.city LEFT JOIN tr_city tc ON tc.city = c.city LEFT JOIN diving_level dl ON dl.diving_level = up.diving_level LEFT JOIN tr_diving_level tdl ON tdl.diving_level = dl.diving_level LEFT JOIN wagaia_structure s ON s.id = up.diving_club WHERE up.user = carnet
#0  Wagaia\Database->error(SELECT up.*, tc.name as city, tdl.name as level, s.libelle as structure, s.logo, s.id_categorie
						FROM user_profile up
						LEFT JOIN city c ON c.city = up.city
						LEFT JOIN tr_city tc ON tc.city = c.city
						LEFT JOIN diving_level dl ON dl.diving_level = up.diving_level
						LEFT JOIN tr_diving_level tdl ON tdl.diving_level = dl.diving_level
						LEFT JOIN wagaia_structure s ON s.id = up.diving_club
						WHERE up.user = carnet, ) called at [/home/clients/53e958684dc32cbdf81964f4415fb045/plongeur/Wagaia/Classes/Database.php:254]
#1  Wagaia\Database->query(SELECT up.*, tc.name as city, tdl.name as level, s.libelle as structure, s.logo, s.id_categorie
						FROM user_profile up
						LEFT JOIN city c ON c.city = up.city
						LEFT JOIN tr_city tc ON tc.city = c.city
						LEFT JOIN diving_level dl ON dl.diving_level = up.diving_level
						LEFT JOIN tr_diving_level tdl ON tdl.diving_level = dl.diving_level
						LEFT JOIN wagaia_structure s ON s.id = up.diving_club
						WHERE up.user = carnet) called at [/home/clients/53e958684dc32cbdf81964f4415fb045/plongeur/Wagaia/Classes/Database.php:227]
#2  Wagaia\Database->pushArray() called at [/home/clients/53e958684dc32cbdf81964f4415fb045/plongeur/Wagaia/Classes/Database.php:211]
#3  Wagaia\Database->select(SELECT up.*, tc.name as city, tdl.name as level, s.libelle as structure, s.logo, s.id_categorie
						FROM user_profile up
						LEFT JOIN city c ON c.city = up.city
						LEFT JOIN tr_city tc ON tc.city = c.city
						LEFT JOIN diving_level dl ON dl.diving_level = up.diving_level
						LEFT JOIN tr_diving_level tdl ON tdl.diving_level = dl.diving_level
						LEFT JOIN wagaia_structure s ON s.id = up.diving_club
						WHERE up.user = carnet) called at [/home/clients/53e958684dc32cbdf81964f4415fb045/plongeur/Wagaia/Classes/Database.php:265]
#4  Wagaia\Database->get(SELECT up.*, tc.name as city, tdl.name as level, s.libelle as structure, s.logo, s.id_categorie
						FROM user_profile up
						LEFT JOIN city c ON c.city = up.city
						LEFT JOIN tr_city tc ON tc.city = c.city
						LEFT JOIN diving_level dl ON dl.diving_level = up.diving_level
						LEFT JOIN tr_diving_level tdl ON tdl.diving_level = dl.diving_level
						LEFT JOIN wagaia_structure s ON s.id = up.diving_club
						WHERE up.user = carnet) called at [/home/clients/53e958684dc32cbdf81964f4415fb045/plongeur/Wagaia/config/queries.php:1517]
#5  require(/home/clients/53e958684dc32cbdf81964f4415fb045/plongeur/Wagaia/config/queries.php) called at [/home/clients/53e958684dc32cbdf81964f4415fb045/plongeur/index.php:3]