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 '' at line 1 SELECT c.*,u.username,u.nickname,u.follows,u.fans,u.headimage FROM user_concerns AS c LEFT JOIN users AS u ON c.userid = u.id WHERE c.concern_userid =