Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp_posts` AS `t` LEFT JOIN `wp_term_relationships` AS `rel_training_type` ON `rel_training_type`.`object_id` = `t`.`ID` LEFT JOIN `wp_term_taxonomy` AS `rel_tt_training_type` ON `rel_tt_training_type`.`taxonomy` = 'training_type' AND `rel_tt_training_type`.`term_taxonomy_id` = `rel_training_type`.`term_taxonomy_id` LEFT JOIN `wp_terms` AS `training_type` ON `training_type`.`term_id` = `rel_tt_training_type`.`term_id` LEFT JOIN `wp_postmeta` AS `start_date_of_training` ON `start_date_of_training`.`meta_key` = 'start_date_of_training' AND `start_date_of_training`.`post_id` = `t`.`ID` WHERE ( ( `training_type`.`name` = 'conferences' ) AND ( `t`.`post_type` = "training" ) AND ( `t`.`post_status` IN ( "publish" ) ) ) ORDER BY `start_date_of_training`.`meta_value` ASC, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date` LIMIT 0, 15; Response: Unknown column 'training' in 'where clause'