[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: | ReturnMe | Date: | Wed, 13 Apr 2022 15:02:43 +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-240934@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8356
Comment Author: ReturnMe
**Solved**
Problem solved.
I have already tested SQL in MySQL separately. It worked there but not from within PHP. The problem
for this was somewhere in PHP, not MySQL.
Solution:
1. I deleted and reinstalled PHP 8.1.
2. I have enabled all required plugins for PDO from CPanel.
Probably friends working on PHP's files on the server have corrupted it.