grazie neroux, avevo due volte $table4 invece che$table4 e $table5... svista...