# Pastebin 2tPnyRL3 if ($table_name eq 'artist_credit') { my $query = <<~"SQL"; SELECT edits_pending FROM artist_credit WHERE id = ? SQL my $edits_pending = $self->c->sql->select_single_value( $query, $id, ); if ($edits_pending > 0) { next; } }