Notice (8): Undefined index: Etablissement [APP/Controller/EtablissementsController.php, line 98]
Notice (8): Undefined index: Ville [APP/Controller/EtablissementsController.php, line 101]
Notice (8): Undefined index: Ville [APP/Controller/EtablissementsController.php, line 102]
Notice (8): Undefined index: Etablissement [APP/Controller/EtablissementsController.php, line 108]
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/clients/client2/web21/web/lib/Cake/Utility/Debugger.php:801) [CORE/Cake/Network/CakeResponse.php, line 448]
Errors
VOTRE AVIS COMPTE ! Vous pouvez désormais laisser un avis sur la page de votre établissement.

Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '*pi()/180)) * sin((Ville.lat*pi()/180))+cos((*pi()/180)) * cos((Ville.lat*pi()/1' at line 1

SQL Query: SELECT Etablissement.id, Etablissement.adress, Etablissement.cp_ville, Etablissement.rs, Etablissement.slug,Etablissement.img,Ville.id,Ville.nom,Ville.lat,Ville.lng,(((acos(sin((*pi()/180)) * sin((Ville.lat*pi()/180))+cos((*pi()/180)) * cos((Ville.lat*pi()/180)) * cos(((- Ville.lng)*pi()/180))))*180/pi())*60*1.1515*1.609344*1000) as distance, `Ville`.`id` FROM `c2_1001ecolesprivees_db`.`etablissements` AS `Etablissement` LEFT JOIN `c2_1001ecolesprivees_db`.`villes` AS `Ville` ON (`Etablissement`.`ville_id` = `Ville`.`id`) WHERE `Etablissement`.`id` != 597 AND `Etablissement`.`agregat_id`= GROUP BY `Ville`.`id` HAVING distance <40000 ORDER BY `distance` ASC LIMIT 7

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace