I want to get the latest datetime from a table but also joining another table.
This is my first table :
| id | title | 
|---|---|
| 1 | a | 
| 2 | ac | 
| 3 | at | 
And this is my second table :
| id | content | author | date | fk_term | 
|---|---|---|---|---|
| 202 | Maecenas ut massa ... | Renee Copnar | 2022-08-17 | 1 | 
| 351 | Sociis natoque penatibus... | Rhona Levesque | 2022-10-30 | 1 | 
| 557 | Phasellus in felis... | Kissie Blabber | 2022-09-11 | 1 | 
| 383 | Maecenas tristique... | Saunders Robet | 2022-08-18 | 2 | 
| 429 | In sagittis dui... | Jorey Strodder | 2022-12-21 | 2 | 
| 655 | Maecenas ut massa... | Sim Harrod | 2023-01-07 | 2 | 
And also I only want one result per first table id Like this :
| content | author | date | fk_term | title | 
|---|---|---|---|---|
| Sociis natoque penatibus... | Rhona Levesque | 2022-10-30 | 1 | a | 
| Maecenas ut massa... | Sim Harrod | 2023-01-07 | 2 | ac | 
 
    