Get row Error: SELECT * FROM surveys WHERE communityID= AND ((surveyStatus=1 or surveyStatus=2) OR userID='0') ORDER BY timestamp DESC : 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 ((surveyStatus=1 or surveyStatus=2) OR userID='0') ORDER BY timestamp DESC' at line 1