INSERT INTO task (user_id, poster_id, project_id, mount_id, subject, time, finish, priority_id, type_id, status_id) VALUES (999, 999, 111, (select MAX(ID) from task where subject = 'Software', 'training', -1, -1, 2, 2, 1);
and
UPDATE task SET mount_id = 2
Where Id = select Max(ID) from task where subject ='Consulting';
they both gave me this error :
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 'select Max(ID) from task where subject ='Consulting'' at line 1
Please and Thank You