这个查询:
$user_mail_all=mysql_query("SELECT *
FROM `mailing` WHERE MATCH (resp)
AGAINST ('$user_resp' IN BOOLEAN MODE)
OR `cor`='$username' ORDER BY `id` DESC LIMIT ".$start.",".$per_page )
运行良好,但下一个查询:
$user_mail_all=mysql_query("SELECT *
FROM `mailing`WHERE MATCH (resp)
AGAINST ('$user_resp' IN BOOLEAN MODE)
OR `cor`='$username'
LEFT JOIN `mail_views`
ON mailing.id=mail_views.lid
AND mail_views.uid=".$_SESSION['uid']."
ORDER BY `id` DESC LIMIT ".$start.",".$per_page)
导致错误:
您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 1 行的“LEFT JOIN mail_views ON mailing.id=mail_views.lid AND mail_views.uid=12 ORDER”附近使用正确的语法
为什么?