Bugfixes (missing semicolon, missing bindParam for PDO, missing $ sign for one PHP variable.