Fixed bug that caused the PDO to throw an invalid keyword error