In my website above all are show in backend using custom code in classroom post backend i show list of all related course same as in side course i show list of lesson and in lesson post i show list of all chapter which are in relationship using metabox and that are show by custom query fetch from wp_toolset_associations table it working fine till yesterday but i show one notice in my dashboard
"Toolset want to Upgrade Database"
After upgrade database all the relationship of my classroom,course,lesson, and chapter are deleted from wp_toolset_associations. table can you please tell me why this happened i am pasting my custom query below.
global $wpdb;
$courseid = $post->ID;
$table_name = $wpdb->prefix . "toolset_associations";
$lessonids = $wpdb->get_results("SELECT $table_name.*,wp_toolset_relationships.slug FROM $table_name,wp_toolset_relationships where $table_name.parent_id = " . $courseid . " and wp_toolset_relationships.is_active = 1 and wp_toolset_relationships.id = $table_name.relationship_id");
Above query i write in my metabox code for find list of all related lesson from course id.
Can ou please help me for this issue why my all record are delete after upgrade database from wp_toolset_association table.