> For the complete documentation index, see [llms.txt](https://learnphp.gitbook.io/learnphp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnphp.gitbook.io/learnphp/learn-lavarel/error-column-not-found-1054-unknown-column-api_token-in-where-clause-sql-select-from-ok.md).

# \[Error] Column not found: 1054 Unknown column 'api\_token' in 'where clause' (SQL: select \* from (ok)

https\://stackoverflow\.com/questions/58644716/laravel-5-8-and-passport-getting-sqlstate42s22-column-not-found-1054-unknown

```

I have faced the same problem. And I am using Laravel Passport. It all about configuration. got to config/auth.php and change driver name of api array to passport within the guards array

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'users',
    ],

    'api' => [
        'driver' => 'passport',//instead of token 
        'provider' => 'users',
        'hash' => false,
    ],
],
```
