i need such query

```
select * from t where
field=ifnull(:param, field) 'it not work's

```

so if param=NULL i have 

```
select * from t where field is NULL

```

but if param =4
i have 

```
select * from t where field=4

```