ลองแก้ไข
update serial set serial_no = (select max(operation_detail_id) from operation_detail) where name = 'operation_detail_id'
แล้ว ERROR
No 1 : insert into replicate_log (`event_time`,`client`,`sql`) values (current_timestamp,'DRG-123','update serial set serial_no = (select max(operation_detail_id) from operation_detail) where name = \'operation_detail_id\'\r\n limit 0')
No 2 : update serial set serial_no = (select max(operation_detail_id) from operation_detail) where name = 'operation_detail_id' limit 0
No 3 : select accessright from opduser where loginname='16'