OK, I have it working using:
echo $beds_query->fields['SUM(products_quantity)'];
echo $beds_query->fields['SUM(final_price)'];
But now I need to add a bit more to my query and have screwed up the join I think. Here is my query:
SELECT
SUM(orders_products.products_quantity),
SUM(orders_products.final_price),
FROM
orders_products
JOIN orders ON orders.orders_id =orders_products.orders_id
WHERE
orders_products.products_id IN (1, 2) AND
orders.date_purchased >= 2010-01-01
This syntax is wrong according to mysql.. Can you check?