I am getting error in this query,

```
SELECT count(if(state=0)) FROM `nagios`.`nagios_hostchecks`
where `nagios_hostchecks`.`start_time` like '%2012-01-02%'
and `nagios_hostchecks`.`host_object_id`=60;

```