I am trying to get data of user when he/she logs in. here is the query

```
$sql = "Select * from user LEFT JOIN user_bank ON user_bank.userID=? LEFT  JOIN user_image ON user.id=? AND user_image.userID=? LEFT  JOIN user_location on user_location.userID=?";

$query = $this -> db -> query($sql, array($sessionID, $sessionID, $sessionID, $sessionID));
return $query -> row();

```

Now the id here is 2 and when i turn on the query profile it show query with id 2 but returns the record of first row instead of second why?