SELECT p.*, sizes as sizes_product FROM products p, sizes s WHERE id_product=product_size GROUP BY name_product
передавались массивом
SELECT p.*,
group_concat(sizes separator ', ') as sizes_product
FROM products p,
sizes s
WHERE id_product = product_size
GROUP BY name_product