Mysql Error While Setting Value With Javascript To See If Three