[错误代码]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 '&& attr_id=5' at line 1{eyou:sql sql='select * from `ey_guestbook_attr` WHERE aid=$aid && attr_id=5'}<br><h2 style="font-size:16px;color:red;font-weight:bold;">昵称:{$field.attr_value}</h2><br> {/eyou:sql}是这样写么,按照大神的写法就报错了,主要是数据都在一起,如何区分的。加上这个 aid = $aid 就提示语法错误