mysql> select * from location3 where username=41215507392; +-------------+------------------------------------+---------------------+ | username | contact | expires | +-------------+------------------------------------+---------------------+ | 41215507392 | sip:41215507392@85.3.159.248:61071 | 2011-06-30 19:41:06 | +-------------+------------------------------------+---------------------+ 1 row in set (0.00 sec) mysql> select * from sippeers2 where name like '41215507392%'; +------+---------------+--------------+-----------+----------+--------------+-------+------------+-------------+----------------------------------+------+ | id | name | host | context | insecure | ipaddr | port | regseconds | username | md5secret | nat | +------+---------------+--------------+-----------+----------+--------------+-------+------------+-------------+----------------------------------+------+ | 3581 | 41215507392 | dynamic | forbidden | no | 85.3.159.248 | 61071 | 1309455666 | 41215507392 | c8aa6453c8813c26213c35e733f4f164 | yes | | 7560 | 41215507392_1 | 85.3.159.248 | forbidden | no | 85.3.159.248 | 61071 | NULL | NULL | NULL | yes | +------+---------------+--------------+-----------+----------+--------------+-------+------------+-------------+----------------------------------+------+ 2 rows in set (0.00 sec)