0

興味を表示するテーブルがあります。各興味には ID があります。現時点では、クエリは 1 つの ID に対して 1 人の人物を返すだけです。基本的には、結果を関心ごとに並べ替える Web サイトのフィルターです。

$catwhere = " and e.person_id IN (select escint_person from person_interests_person where escint_person = e.person_id and escint_interest = 26) ";

複数の興味からの結果を表示したいと思います。

したがって、私の基本的なロジックでは、次のようになります

$catwhere = " and e.person_id IN (select escint_person from person_interests_person where escint_person = e.person_id and escint_interest = 26,27,28,29) ";

しかし、明らかにこれは機能しません。

どんな助けでも大歓迎です。

4

1 に答える 1

0

IN2 番目のクエリで句を使用する必要があります。

where escint_person = e.person_id and escint_interest IN( 26,27,28,29 )
于 2013-03-28T03:27:56.633 に答える