# Binder Error: The column is not in the FROM clause

> The query names a column that no table or alias in its FROM clause provides, so DuckDB cannot bind it.

Source: https://sqlly.app/errors/duckdb/column-not-exist
Last updated: 2026-11-30
License: Text and data [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (credit SQLly, sqlly.app); code and SQL snippets [MIT](https://opensource.org/license/mit). [Details](https://sqlly.app/license).
Note: Quoted error message text belongs to its database vendor.

- Exception: `Binder Error`
- Category: Binder Error

Error message:

```text
Binder Error: Referenced column "nope" not found in FROM clause!
```

## What it means

The binder resolved the FROM clause first, then looked up every column reference in it. The name in quotes is the one it could not find anywhere in that scope. DuckDB will not guess: a missing column is an error even when another table in the database has it.

Typical traps are the wrong alias (or no alias where a subquery needs one), a CTE referenced by a column it does not select, and a USING/JOIN that narrowed which columns remain visible. In INSERT or UPDATE the same class appears when the target table lacks a column you name.

## Common causes

- A misspelled column name. Matching ignores case, quoted or not, so a wrong case alone does not cause this error.
- The column belongs to a table that is not in the FROM clause, or a missing join to reach it.
- A subquery or CTE that does not project the column, so the outer query cannot see it.
- A GROUP BY or window context where the column is neither grouped nor aggregated, which DuckDB reports as a binder problem about the column.

## How to fix it

1. Check the real columns of the table you query, not the ones you remember:

   ```sql
   DESCRIBE my_table;
   SELECT column_name, data_type FROM information_schema.columns WHERE table_name = 'my_table' ORDER BY ordinal_position;
   ```
2. When the name may exist in several tables, find which one has it:

   ```sql
   SELECT table_schema, table_name FROM information_schema.columns WHERE column_name = 'email' ORDER BY 1, 2;
   ```
3. Qualify ambiguous references with the table or alias so the binder knows which one you mean:

   ```sql
   SELECT o.id, c.name FROM orders o JOIN customers c ON o.customer_id = c.id;
   ```
4. Project a column in a CTE if the outer query needs it:

   ```sql
   WITH recent AS (SELECT id, email FROM users WHERE created_at > now() - INTERVAL 7 DAY)
   SELECT email FROM recent;
   ```

## Reproduce it safely

```sql
SELECT nope FROM range(3);   -- Binder Error: Referenced column "nope" not found in FROM clause!
```

## Questions

### The column exists. Why is it not found?

Check the scope, not just the database. Inside a join, subquery or CTE, only the columns the clause projects are visible, and an alias may hide the table that has the column.

### Does quoting change how a column name is matched?

No. DuckDB matches column names case-insensitively whether or not they are quoted, so a column created as "Email" is found by email, "EMAIL" or "Email".

## Related errors

- [`Binder Error`](https://sqlly.app/errors/duckdb/binder-error): DuckDB could not plan the query
- [`Catalog Error`](https://sqlly.app/errors/duckdb/catalog-table-not-exist): The table does not exist in this database
- [`Conversion Error`](https://sqlly.app/errors/duckdb/conversion-could-not-convert): The value cannot be cast to the target type
- [`42703`](https://sqlly.app/errors/postgresql/42703): PostgreSQL: column does not exist
- [`1054`](https://sqlly.app/errors/mysql/1054): MySQL: Unknown column in field list
- [`SQLITE_ERROR`](https://sqlly.app/errors/sqlite/sqlite-error): SQLite: SQL logic error

The code and message text are from the [DuckDB documentation](https://duckdb.org/docs/).
