SQL Error: SELECT m.mbNameTH, m.mbNameEN, m.mbPicture, m.mbEmail, m.mbFacebook, m.mbLevel, d.depName, g.gpNameTH, g.gpNameEN, m.mbPositionA, m.mbPositionAEN, m.mbPositionH, m.mbPositionHEN, m.mbEducation, m.mbEducationEN, m.mbSapocTH, m.mbSapocEN, m.mbStatus, c.idd FROM member AS m LEFT OUTER JOIN department AS d ON d.depID = m.depID LEFT OUTER JOIN `group` AS g ON g.gpID = m.gpID LEFT OUTER JOIN ct_doc AS c ON c.mbID = m.mbID WHERE m.mbID = AND m.mbStatus = '1' 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 'AND m.mbStatus = '1'' at line 1 |