SELECT $tabella.* FROM $tabella,$tabella2 WHERE $tabella.titolo = $tabella2.titolo AND $tabella2.id = $id;