# django.core.exceptions.FieldError: Cannot resolve keyword 'author_name' into field. Choices are: author, author_id, title, published_date

- **ID:** `python/django-orm-query-inefficiency`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Attempting to filter by a non-existent field name, maybe due to wrong related field access.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Use correct related field: Book.objects.filter(author__name='John') if Author has name field.
   ```
2. **** (90% success)
   ```
   Check model fields and use exact field names: author.name if author is FK.
   ```

## Dead Ends

- **** — Using author__name instead of author__name__icontains still fails if field doesn't exist. (60% fail)
- **** — Adding a property to model doesn't make it queryable in ORM. (80% fail)
