我是 cakephp 新手,如何在 cakephp 中编写下面的 sql 查询
$sql = "SELECT * FROM `user` WHERE `email` = '" . $email . "' AND `password` = '" . $password . "'";
$result = mysql_query($sql, $connection);
while($fetchdata = mysql_fetch_assoc($result)){
echo $fetchdata['name'];
}
请帮助我谢谢