I'm trying to update 1 field from another table's data but I'm getting the error #1242 - Subquery returns more than 1 row.
The query I'm running is:
UPDATE oc_order AS o
SET o.date_added = ( SELECT date_added FROM oc_order_history
WHERE order_id = o.order_id
AND order_status_id = 5)
Any ideas on where it's going wrong or how I can fix?