INSERT INTO …
SELECT …
INNER JOIN ( SELECT personnelnumber, MAX(objectid) … GROUP BY personnelnumber ) …
Каждый день одно и тоже.INSERT INTO newtablename
(SELECT id, objectid, lastname, firstname, middlename, position, status, personnelnumber, organization_id
FROM tablename AS t1
WHERE t1.objectid = (SELECT max( t2.objectid ) FROM tablename AS t2 WHERE t1.personnelnumber = t2.personnelnumber)
GROUP BY personnelnumber, id, objectid, lastname, firstname, middlename, position, status, organization_id)