} else {
# Let's be sure that the row exists in the table. We don't need to
# do this if we got the row from the table in initialization!
- $seqVal = $dbw->nextSequenceValue( 'category_id_seq' );
+ $seqVal = $dbw->nextSequenceValue( 'category_cat_id_seq' );
$dbw->insert(
'category',
array( 'cat_id' => $seqVal,