For anyone else looking to get this fixed:
File: CPK_WPCSV_Engine.php
Copy paste this from line 25-32
$this->export_model->empty_table( );
$export_file = $this->settings['csv_path'] . '/' . self::EXPORT_FILE_NAME . '.csv';
if ( file_exists( $export_file ) ) unlink( $export_file );
$post_ids = $this->posts_model->get_post_ids( $this->settings['post_type'] );
if ($post_ids) {
$this->export_model->add_post_ids( $post_ids );
}
Also on file: CPK_WPCSV_Posts_Model.php
Copy paste this from lines 24-40
global $wpdb;
$results = $wpdb->get_results($sql);
$post_ids = Array( );
foreach ($results as $result) {
$post_ids[] = (int)$result->ID;
}
/*$results = mysql_query( $sql, $this->db->dbh );
if ( $results ) {
$post_ids = Array( );
while ( $result = mysql_fetch_assoc( $results ) ) {
$post_ids[] = (int)$result['ID'];
} # End while
mysql_free_result( $results );
}*/
return $post_ids;
}