Bug MySQL error when using 'New occurrence'