Two tables with same name in MySQL
MySQL allows you to create a temp table with a existing name because they don't have the same "scope". A temporary table is visible in the session only, and it is dropped at session ending. If you have the same name, MySQL "hide" the original table until you drop your temp table.
You can refer to the Temporary Tables section in the MySQL documentation
Max.