please change this to `$fields = array();` because this is not php5.3 compatible