I have found a lot of examples and documentation on the workarounds for this but the standard example does not work for me.
In this answer a workaround is given in the form:
UPDATE tbl SET col = (
SELECT ... FROM (SELECT.... FROM) AS x);
I used the same format but still get the same error. Here is my query.
UPDATE employees
SET salary = (SELECT salary FROM (SELECT * FROM employees WHERE employee_id= '100') AS t1)
WHERE employee_id='105';
The WHERE seems to break this for some reason, is there anything I am obviously doing wrong?