Fixed SQL Query typo in checkExistance.