string(111) "INSERT INTO search (search,ip) VALUES ('APAA-346','55630389') ON DUPLICATE KEY UPDATE created=CURRENT_TIMESTAMP" Invalid query: Duplicate entry '397232' for key 'PRIMARY'