Internal Server Error (500) when saving non-localizable fields after migration from Strapi 4 to Strapi 5
### Node Version

20.18.1

### NPM/Yarn/PNPM Version

NPM 10.8.2 Yarn 1.22.22 

### Strapi Version

5.8.1

### Operating System

Linux (Debian/Ubuntu)

### Database

PostgreSQL

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

## Description
After migrating from Strapi 4 to Strapi 5, I'm encountering a critical issue when trying to save or update content that contains non-localizable fields. The error occurs specifically when handling content with mixed localizable and non-localizable fields.

## Error Details
When trying to save content, I receive a 500 Internal Server Error with the following stack trace:

```sql
[2025-01-27 16:59:37.213] error: Undefined binding(s) detected when compiling WHERE. Undefined column(s): [t0.id] 
query: where "t0"."id" = ?

### Steps to Reproduce


Have a content type with mixed field types (some localizable, some non-localizable)
Try to create new content or update existing content
The error occurs during the save operation

**Configuration**

Database: Supabase (PostgreSQL)
Languages configured: French (fr) and English (en)


**Current Behavior**
The system throws a 500 error when attempting to save content that includes non-localizable fields. However, if all fields in a content type are set as localizable, the save operation works correctly.

### Expected Behavior

The content should be saved successfully with:

Localized fields having different values for each language
Non-localized fields having the same value across all languages

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

The error seems to be related to how Strapi 5 handles the SQL query for non-localizable fields, specifically in the WHERE clause where it's trying to reference "t0.id" which appears to be undefined in the query context.

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).