id title id_img
1 Nike 1,2,3
2 Puma 1,2
3 Lux 3,4,5
id img
1 1.png
2 2.png
3 3.png
$products= \R::getAll("SELECT * FROM product_status JOIN product ON product.status_id = product_status.id JOIN pay ON product.paysystem_id = pay.pay_id");