db_select query for the above sql query, I want this query in $ query = db_select(‘node’,’n’) how can i give query condition with equi join in drupal 7 select t1. *,t2.vid,t2.name from taxonomy_term_hierarchy t1, taxonomy_term_data t2 where t1.tid = t2.tid AND vid=2 limit 5;Read more