select * from td_query_info t where exists (select 1 from td_query_price p where p.fphm=t.fphm and p.status=1)