I have the query...
SELECT COUNT(order_id) as orders,
SUM(order_total) as sales
FROM uc_orders
WHERE FROM_UNIXTIME(created) BETWEEN "2010-08-14" AND "2010-08-15"
AND order_status = "payment_received"
The problem is that's not returning the orders from the provided date period. I'm not getting any SQL errors. Is there something about BETWEEN that I'm doing wrong?