Hello all,

I am writing a log-in script for a webpage and I cant seem to see my error anymore, I have no clue where to find it.

Here is the error:
Code:
[10-Aug-2014 10:01:52 America/Denver] array (
  0 => '42000',
  1 => 1064,
  2 => '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 \'
								Password = \'148870a26b36b6441cbc9fe84f5ad1f8671df2bd\'\' at line 9',
)
And here is the PHP code that goes along with it:
Code:
try {
							$LGC = new PDO('mysql:host=localhost; dbname=***', '*****', '****');
							$LGC->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
								//Prepares the SQL Statement
								$SLU = $LGC->prepare(
								"SELECT
								Username,
								Password,
								Active,
								UID
								FROM
								Users
								WHERE
								Username = :Uname,
								Password = :DbPass
								");
									//Binds the variables 
									$SLU->bindParam(':Uname', $User);
									$SLU->bindParam(':DbPass', $ENC);
									
										//Executes the SQL Statement matching the information given
										$SLU->execute();
										
											//Sets the results 
											$result = $SLU->fetch(PDO::FETCH_ASSOC);
												$Uname = $result['Username'];
												$Active = $result['Active'];
												$UID = $result['UID'];
							}
							catch (PDOException $ex) {
							$msg = $ex->errorInfo;
							error_log(var_export($msg, true));
							die("<h1 style='color:red'>Error LG_01, Please contact the administrator!</h1>");
							}
Any help would be great