Try usign this query as example to grab data from another table without using php to get and inserting it into the database..
INSERT INTO $table_login (UserID,AID,Password,RegIP) SELECT '$user',AID,'$pass','$ip' FROM $table_account WHERE UserID='$user'"
Copyd the query from my reg page..