$sql = "SELECT t1.post_title, t1.post_name, t1.guid FROM tabla1 as t1 JOIN tabla2 as t2 ON (t1.id = t2.id) WHERE t2.term_taxonomy_id = 84