This is mymysql table

```
id  name   ssn    phone       email**  
1   Asok   5466   9865893265  asok@gmail.com  
2   Sokan  7856   9562358965  sakan@gmail.com
......  
.....

```

when I am using select query, i will get result as:

```
Array ( [0] => Array ( [id] => 1 [name] => Asok [sin] => 5466 [phone] => 9865893265 [email] => asok@gmail.com )  [1] => Array ( [id] => 2 [name] => Sokan [sin] => 7856 [phone] => 9562358965 [email] => sakan@gmail.com ) ...)`

```

I need to get this result as 

```
Array ( [5466] => Array ( [id] => 1 [name] => Asok [sin] => 5466 [phone] => 9865893265 [email] => asok@gmail.com )  
[7856] => Array ( [id] => 2 [name] => Sokan [sin] => 7856 [phone] => 9562358965 [email] => sakan@gmail.com ) ...)

```

using sql query

Here the index 5466 and 7856 are the field 'ssn' (this is a unique no to that person)