i have these table in database:
country:
id country
------------------
1 USA
2 Brazil
and segment table:
id
you just try this
$sql = select * from third_table
inner join country on third_table.country_id = country.id
inner join segment on third_table.segment_id = segment.id
$res = mysql_query($sql);
'or'
select * from TableA A
inner join TableB B on A.Column=B.Column
inner join TableC C on A.Column=C.Column