After doing an inner join between the user (1) and image (N) tables, the following table is returned (the id refers to the user id and the file_name to the image file):
| id | filename
| 12 | img1.png
| 12 | img2.png
| 13 | img3.png
| 13 | img4.png
How to retrieve only 1 image from each id? (without using the where = id, because at the time of the query, I do not have the id to do the comparison.)