SELECT * FROM Mytable where Email='$email' and Confirmation=$ConfirmationCode
Try enclosing $email in quotes & if confirmationcode is not int then enclose that too & try.
Do let know if that works for you