SELECT
          t.name AS tname
        FROM `product` as p
        JOIN
          `product_theme` as pt ON pt.prod_id = p.prod_id
        JOIN
          `theme` as t ON t.theme_id = pt.theme_id theme 
 
product_theme
 product  theme 
 product_theme  prod_id 
 tname 
 while ($row...mysqli_fetch_array) $row["tname"] prod_id 41 theme
 
 
so how do I show and rewrite it?
