Fix this error
SQLSTATE[42S22]: Column not found: 1054 Unknown column
Dasun Kalupahana 195 views
The error
Error
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'field list'
Why it happens
The query uses a column the table doesn't have. Usually a migration that adds it was not run on this database, the name has a typo, or Eloquent is adding created_at / updated_at to a table without them.
How to fix it
- Run pending migrations:
php artisan migrate(check withmigrate:status). - Compare the column name in your code with the table.
- If the table has no timestamps, add
public $timestamps = false;to the model.
php artisan migrate:status
php artisan migrate
Learn more on the blog
PostgreSQL vs MySQL Performance: Real Benchmarks Compared
Last updated: 7 November 2026. See the update log at the end."Which...
How to Detect and Fix PHP Memory Leaks
Last updated: 5 November 2026. See the update log at the end.In...
Docker Build Too Slow? 10 Ways to Speed It Up
A slow Docker build usually has one of a few causes: you...