我正在建立一个社交应用程序。我怎样才能做到这一点?我在想象这样的事情: RIGHT JOIN postLikes pl ON pl.postId = p.id AND pl.userId = :userId RIGHT JOIN postComments pc ON pc.postId = p.id AND pc.userId = :userId RIGHT JOIN postCommentLikes pcl ON pcl.pos
* FROM ships WHERE shipCode="SP"第一个可以正常工作,第二个是在第一个字符串上调用mysql_real_escape_string不能工作,并给出无用的错误消息#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL