[php-src] Issue #8356: PHP 8.1 PDO (Probably a Bug) : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'school_types.type_id' in 'where clause'
in
| From: | kamil-tekiela | Date: | Wed, 13 Apr 2022 14:13:52 +0000 |
| Subject: | [php-src] Issue #8356: PHP 8.1 PDO (Probably a Bug) : SQLSTATE[42S22]: Column not found: 1054 Unknown column 'school_types.type_id' in 'where clause' in |
||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-240926@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8356
Comment Author: kamil-tekiela
```
try{
$db = new PDO('mysql:host=localhost;dbname='.DB_NAME.';charset=utf8',
DB_USER, DB_PASS);
}catch(PDOException $e){
print $e->getMessage();
}
```
You don't enable error reporting. Please enable PDO error reporting and try again on PHP 7.4