I'm encountering a mysql syntax issue wit the following update query command and I'm not sure how to overcome this. It looks fine to me :/ could anyone help me out please?
This is the query:
UPDATE r
SET r.status_code = 7, r.last_updated = now()
FROM record r
LEFT JOIN held_proposals h ON h.proposal_id = r.proposal_id
WHERE r.proposal_id = h.proposal_id AND h.end_date < now() AND r.student_record_id = 46;
this is the error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM record r LEFT JOIN held_proposals h ON h.proposal_id = r.proposal_id WHE' at line 3
the table structure for each table:
held proposals:

record:

Really need to sort this out in the next 30 minutes. please help! thanks in advance