copied! copy stacktrace search stackoverflow search google exception

database exceptionyii\db\exception

sqlstate[42000]: syntax error or access violation: 1064 you have an error in your sql syntax; check the manual that corresponds to your mysql server version for the right syntax to use near '' at line 1
the sql being executed was: update `articles` set `clicks`=`clicks`+1 where id=

error info: array
(
    [0] => 42000
    [1] => 1064
    [2] => you have an error in your sql syntax; check the manual that corresponds to your mysql server version for the right syntax to use near '' at line 1
)