
START TRANSACTION;

SET @id := (SELECT `id` FROM `fields` WHERE `key` = "front_err_ARRAY_min_limits");
UPDATE `multi_lang` SET `content` = 'For the selected dates you can book minimum {MIN} night(s). You tried to book {YOUR} night(s).' WHERE `foreign_id` = @id AND `model` = "pjField" AND `field` = "title";

SET @id := (SELECT `id` FROM `fields` WHERE `key` = "front_err_ARRAY_limits");
UPDATE `multi_lang` SET `content` = 'For the selected dates you can book between {MIN} and {MAX} night(s). You tried to book {YOUR} night(s).' WHERE `foreign_id` = @id AND `model` = "pjField" AND `field` = "title";

INSERT INTO `fields` VALUES (NULL, 'front_err_ARRAY_limits_days', 'arrays', 'Calendar / Limits not match', 'script', NULL);
SET @id := (SELECT LAST_INSERT_ID());
INSERT INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', 'For the selected dates you can book between {MIN} and {MAX} day(s). You tried to book {YOUR} day(s).', 'script');

INSERT INTO `fields` VALUES (NULL, 'front_err_ARRAY_min_limits_days', 'arrays', 'Calendar / Limits not match', 'script', NULL);
SET @id := (SELECT LAST_INSERT_ID());
INSERT INTO `multi_lang` VALUES (NULL, @id, 'pjField', '::LOCALE::', 'title', 'For the selected dates you can book minimum {MIN} day(s). You tried to book {YOUR} day(s).', 'script');

COMMIT;