public function doQuery( $db ) {
$ids = array_map( 'intval', $this->ids );
- $commentQuery = CommentStore::newKey( 'log_comment' )->getJoin();
+ $commentQuery = CommentStore::getStore()->getJoin( 'log_comment' );
return $db->select(
[ 'logging' ] + $commentQuery['tables'],