`users` as `u2` WHERE `users.bestId` = `u2.id` LEFT JOIN `friends` WHERE `users.id` = `friends.id1` LEFT JOIN `users` as `u3` WHERE `friends.id2 = u3.id` LEFT JOIN `users` as `u4` WHERE `u3.bestId` = `u4.id` query.sql
`users` as `u2` WHERE `users.bestId` = `u2.id` LEFT JOIN `friends` WHERE `users.id` = `friends.id1` LEFT JOIN `users` as `u3` WHERE `friends.id2 = u3.id` LEFT JOIN `users` as `u4` WHERE `u3.bestId` = `u4.id` query.sql
null; public function prepare($pass) { switch ($pass) { case 0: fetch_some_data($this->some_data) return true; case 1: fetch_other_data($this->some_data, $this->other_data) return false; } public function getData() { return $this->other_data; } } https://www.quora.com/Facebook-Infrastructure-What-are-preparables-and-how-are-they-implemented
null; public function prepare($pass) { switch ($pass) { case 0: fetch_some_data($this->some_data) return true; case 1: fetch_other_data($this->some_data, $this->other_data) return false; } public function getData() { return $this->other_data; } } https://www.quora.com/Facebook-Infrastructure-What-are-preparables-and-how-are-they-implemented
null; public function prepare($pass) { switch ($pass) { case 0: fetch_some_data($this->some_data) return true; case 1: fetch_other_data($this->some_data, $this->other_data) return false; } public function getData() { return $this->other_data; } } https://www.quora.com/Facebook-Infrastructure-What-are-preparables-and-how-are-they-implemented