$criteria = new CDbCriteria; $criteria->addCondition('status=:status'); $criteria->params[':status'] = 1;In this example, we create a new criteria object and use the addCondition method to add a condition to only select entries where the status column equals 1. The CDbCriteria class is part of the Yii framework, a popular PHP web application framework for developing web applications quickly and easily.