mysql> select * from location3 where username=41215500329; +-------------+-------------------------------------+---------------------+ | username | contact | expires | +-------------+-------------------------------------+---------------------+ | 41215500329 | sip:41215500329@85.3.159.248:55427 | 2011-06-30 19:10:10 | +-------------+-------------------------------------+---------------------+ 1 rows in set (0.00 sec) mysql> select * from sippeers2 where name like '41215500329%'; +------+---------------+--------------+-----------+----------+--------------+-------+------------+-------------+----------------------------------+------+ | id | name | host | context | insecure | ipaddr | port | regseconds | username | md5secret | nat | +------+---------------+--------------+-----------+----------+--------------+-------+------------+-------------+----------------------------------+------+ | 4255 | 41215500329 | dynamic | forbidden | no | 85.3.159.248 | 55427 | 1309453810 | 41215500329 | 178c4c990a5995dd3e81d9bf5d5aeb7a | yes | | 7557 | 41215500329_1 | 85.3.159.248 | forbidden | no | 85.3.159.248 | 55427 | NULL | NULL | NULL | yes | +------+---------------+--------------+-----------+----------+--------------+-------+------------+-------------+----------------------------------+------+ 2 rows in set (0.00 sec)