SELECT
date,
discountLien,
discount,
categorie,
num_voiture,
modele,
marque,
millesime,
nom,
icone,
prix_ttc,
(SELECT file FROM `gallery` WHERE `id_produit_uuid` = s.id_produit_uuid ORDER BY `gallery`.`is_main` DESC LIMIT 0,1) AS tempPhoto,
linkAccess, s.id_produit_uuid
FROM
`showroom` s
INNER JOIN
marques m ON s.marque = m.nom
INNER JOIN
showroom_publications sp ON s.id_produit_uuid = sp.id_produit_uuid AND sp.id_publication_uuid = '3E0C8008-4545-43AF-A959-F3C6005B8E8A'
WHERE
s.categorie LIKE 'Cabriolet' ORDER BY `s`.`millesime` DESC, `s`.`marque` ASC, `s`.`modele` ASC;