# django.core.exceptions.FieldError: Cannot resolve keyword 'author_id' into field. Choices are: id, name, email, created_at

- **ID:** `python/django-field-error-null`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

ORM查询中使用了不存在的字段名，或关联查询语法错误

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   使用Article.objects.filter(author__name='John')代替author_id
   ```
2. **** (85% success)
   ```
   Article.objects.filter(author__id=1)
   ```

## Dead Ends

- **** — 数据库表结构未更新，查询仍会失败 (80% fail)
- **** — 语法正确但逻辑错误，会查询关联对象的主键而非外键字段 (50% fail)
