# Fix dbt-trino 'found two models with the name' compilation error
Running `dbt run --models +MY_MODEL+` with dbt-trino failed with a Compilation Error saying dbt found two models with the same name, even though only one model existed. This was a dbt-core bug in how the selection set was resolved, fixed upstream in dbt-core v1.5.2. Upgrade: `pip install 'dbt-core==1.5.2'` (and matching dbt-trino), then rerun dbt. The maintainer pointed at v1.5.2 as the fix and the reporter confirmed the error went away.
## How to handle it
Every `dbt run --models +MY_MODEL+` died with `Compilation Error: dbt found two models with the name` on dbt-core 1.5.0. It is not a dbt-trino problem: the fix is `pip install dbt-core==1.5.2`, which is the release the dbt-trino maintainer pointed to on the thread. The reporter confirmed the upgrade resolved it. Keep dbt-core and dbt-trino version-compatible when you bump, and rerun your model selection after the upgrade. Source: https://github.com/starburstdata/dbt-trino/issues/311