为什么这段代码不能使用当前的WordPress分类系统显示类别名称“苹果”?类别名称存储在$wpdb->terms表(wp_terms)中。$ra_category = $wpdb->get_results("SELECT name FROM $wpdb->terms WHERE term_idphp echo $ra_category_name; ?></h3>
表
我得到了一个错误:
Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AS `Colleges__*` FROM college_admins CollegeAdmins LEFT JOIN colleges Colleges O'