Muchas gracias a todos, pero ahora tengo otro problema, puse el código de anacona16 y me sale:
Cita: Problemas en el selectYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'from usuarios where login='Test'' at line 1