secondo me c'è qualche carattere non consentito in $RecP[Testo]. Prova ad usare mysql_real_escape_string