I didn't really give enough detail before, here is exactly what I'm doing, I really need help getting this to work.
mysql> INSERT INTO Unamepassword VALUES (0,password('testing'), 'dmuhsin');
Query OK, 1 row affected (0.00 sec)
mysql> select * from unamepassword;
+----+--------------+----------+
| id | password | username |
+----+--------------+----------+
| 1 | 0b89d2383b82 | dmuhsin |
+----+--------------+----------+
1 row in set (0.01 sec)
mysql> select id from unamepassword where password = password('testing');
Empty set (0.00 sec)
mysql>