Usually data is selected based upon certain criteria. Query Builder has some useful methods to specify these, the most powerful of which being `where`. It can be used in multiple ways.
The simplest way to apply a condition is to use a string:
When using strings, make sure you're binding the query parameters, not creating a query by string concatenation. The above approach is safe to use, the following is not:
```php
$query->where("status=$status");// Dangerous!
```
Instead of binding the status value immediately, you can do so using `params` or `addParams`:
```php
$query->where('status=:status');
$query->addParams([':status'=>$status]);
```
Multiple conditions can simultaneously be set in `where` using the *hash format*: