我现在正在使用 python mysql
我有问题这是mysql查询
query = 'SELECT * FROM callerdetail WHERE screenname="1" AND status="0"AND agent ='idd'
我从外部来源获得 idd 但每当我尝试执行此查询时
我收到错误
File "server.py", line 28
query = 'SELECT * FROM callerdetail WHERE screenname="1" AND status="0"AND agent ='idd'
^
SyntaxError: invalid syntax
请帮我解决我可能做错的事情