Traceback (most recent call last): File "/data/www/coom/app.py", line 2556, in get cur.execute("select id,title,content,channelid,dbdate,counts,sid,ref,isdel,ismark,img,classid from article where id = "+ str(aid) +" limit 1") File "/usr/lib64/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute self.errorhandler(self, exc, value) File "/usr/lib64/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass, errorvalue ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '?p=2 limit 1' at line 1")