SELECT order_products.count, prod.name, prod.price FROM order_products JOIN prod ON order_products.product_id = prod.id WHERE order_id = 1
while($row = $result->fetch_assoc()
row
?$product["count"] = $row["order_products.count"];
$product["name"] = $row["prod.name"];