SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens The SQL being executed was: update :pref:contents set view=view+10+round(rand()*20), realview= (case realview when 0 then view else realview+1 end) where id=2629