When I'm trying to make an SQL query. 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 '\'foo@gmail.com\' LIMIT 1' at line 1. The finished query:
SELECT * FROM `members` WHERE `email` = \'foo@gmail.com\' LIMIT 1
$sql = "SELECT * FROM `members` WHERE `email` = '$email' LIMIT 1";
Am I missing something?