First, I don't see you actually issuing the query anywhere.
Second, you can't use a '.' in PHP for an array index, so fetch_array won't use that. If the two tables have a field with the same name the LAST one returned by the query will be the ONLY one referred to by that index. If this is the case, you'll need to alias the fields in your query.