não estava trancado com mesas de trava
If in one session, you locked one table but want to select from another table, you must either lock that table too or unlock all tables.
Kelsier