how can I replace column 'price' from 'products' to new 'price' from 'product_variations' and order by this new 'price'. Thank you for yours answers.
SELECT products.*, product_variations.price as `price`
FROM products
LEFT JOIN product_variations ON product_variations.product = products.id
ORDER BY price