QueryException: SQLSTATE[42S22]: Column not found
The PHP error "QueryException: SQLSTATE[42S22]: Column not found" typically occurs when your application tries to access a column in your database that does not exist. This could be due to a typo in the column name or because the column has been renamed or deleted. It could also occur if the database schema has not been correctly set up or updated.
Example:
// table
CREATE TABLE Users (
ID int,
LastName varchar(255),
FirstName varchar(255)
);
// wrong query
insert into Users (ID, LastName, FirstName, PhoneNumber) values (1, "Kowalsky", "John", "123456789");
- We are not pushy
- We only send a few emails every month. That's all.
- No spam
- We only send articles, and helpful tips for developers, not SPAM.