插入 3 个表中的值
表 1:wp_terms

表 2:wp_term_taxonomy

表 3:wp_term_relationships

我需要这样的输出(我想根据类别获取所有品牌和设计师)

我试过这个
$sql="select term_taxonomy_id from wp_term_taxonomy where term_id=177";
mysql_query($sql);
我得到了输出 251
但我被困在Table3: wp_term_relationships on how to fetch data where object_idare similar: 550, 540(for category, band, design)