Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 3065 Expression #1 of ORDER BY clause is not in SELECT list, references column 'fbb_adoption.Animal.Nom' which is not in SELECT list; this is incompatible with DISTINCT' in /var/www/adoption/chat_a_adopter.php:99 Stack trace: #0 /var/www/adoption/chat_a_adopter.php(99): PDO->query('select distinct...') #1 {main} thrown in /var/www/adoption/chat_a_adopter.php on line 99