diff --git a/docs/en/02_Developer_Guides/00_Model/08_SQL_Select.md b/docs/en/02_Developer_Guides/00_Model/08_SQL_Select.md index bc0a53e6230..b3826d24f4e 100644 --- a/docs/en/02_Developer_Guides/00_Model/08_SQL_Select.md +++ b/docs/en/02_Developer_Guides/00_Model/08_SQL_Select.md @@ -31,7 +31,7 @@ $count = DB::query('SELECT COUNT(*) FROM "Member"')->value(); // Through SQLSelect abstraction layer. $query = new SQLSelect(); -$count = $query->setFrom('Member')->setSelect('COUNT(*)')->value(); +$count = $query->setFrom('Member')->setSelect('COUNT(*)')->execute(); // Through the ORM. $count = Member::get()->count();