SQLSTATE[42S22]: Column not found: 1054 Unknown column 'realview' in 'field list' The SQL being executed was: update `core_contents` set view=view+10+round(rand()*20), realview= (case realview when 0 then view else realview+1 end) where id=3899