diff --git a/docs/guide/query-builder.md b/docs/guide/query-builder.md index 76d468c..f90bd1b 100644 --- a/docs/guide/query-builder.md +++ b/docs/guide/query-builder.md @@ -251,7 +251,7 @@ $query = new Query; $query->select("id, 'post' as type, name")->from('tbl_post')->limit(10); $anotherQuery = new Query; -$query->select('id, 'user' as type, name')->from('tbl_user')->limit(10); +$anotherQuery->select('id, 'user' as type, name')->from('tbl_user')->limit(10); $query->union($anotherQuery); ```