diff --git a/ext/artists/main.php b/ext/artists/main.php index a2380120..5276881f 100644 --- a/ext/artists/main.php +++ b/ext/artists/main.php @@ -837,7 +837,7 @@ class Artists extends Extension { INSERT INTO artists (user_id, name, notes, created, updated) VALUES (?, ?, ?, now(), now()) ", array($user->id, $name, $notes)); - return $database->get_last_insert_id(); + return $database->get_last_insert_id('artists_id_seq'); } /**