insert into lh_issues(id,projectidfk,created,updated,name,useridfk,creatoridfk,description,history,locusidfk,severityidfk,statusidfk,relatedURL,duedate,issuetypeidfk,milestoneidfk) values( , , , , , , , , , , , , , , , ) select max(publicid) as maxid from lh_issues where projectidfk = update lh_issues set publicid = where id = delete from lh_issues where id = select id, projectidfk, created, updated, name, useridfk, creatoridfk, description, history, locusidfk, severityidfk, statusidfk, relatedurl, duedate, publicid, issuetypeidfk, milestoneidfk from lh_issues where id = update lh_issues set projectidfk = , created = , updated = , name = , useridfk = , creatoridfk = , description = , history = , locusidfk = , severityidfk = , statusidfk = , relatedurl = , duedate = , issuetypeidfk = , milestoneidfk = where id =