SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `nk_catalog_product_entity_int` AS `t_d` INNER JOIN `nk_catalog_product_entity` AS `e` ON e.row_id = t_d.row_id AND (e.created_in <= '1561953600' AND e.updated_in > '1561953600') LEFT JOIN `nk_catalog_product_entity_int` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.row_id = t_d.row_id AND t_s.store_id = 1 WHERE (e.entity_id IN (143)) AND (t_d.attribute_id IN ('143', '133', '93', '604', '136', '137', '212', '205', '206', '139', '131', '128', '208', '83', '316', '293', '91', '117', '120', '115', '146', '145', '121', '216', '213', '214', '118', '552', '395', '343', '554', '553', '335', '352', '555', '556', '557', '322', '353', '345', '346', '328', '558', '559', '342', '560', '324', '340', '561', '339', '562', '329', '327', '581', '347', '563', '564', '565', '566', '567', '332', '334', '336', '344', '568', '331', '325', '330', '320', '318', '569', '570', '571', '337', '572', '338', '341', '321', '573', '97', '177', '149', '148', '147', '144', '142', '138', '140', '99', '209', '119', '605')) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `nk_catalog_product_entity_varchar` AS `t_d` INNER JOIN `nk_catalog_product_entity` AS `e` ON e.row_id = t_d.row_id AND (e.created_in <= '1561953600' AND e.updated_in > '1561953600') LEFT JOIN `nk_catalog_product_entity_varchar` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.row_id = t_d.row_id AND t_s.store_id = 1 WHERE (e.entity_id IN (143)) AND (t_d.attribute_id IN ('211', '199', '114', '100', '116', '612', '614', '141', '203', '96', '150', '151', '611', '87', '109', '202', '174', '130', '204', '86', '84', '127', '73', '106', '104', '619', '618', '207', '129', '315', '88', '110', '578', '361', '371', '370', '372', '373', '376', '368', '292', '369', '350', '576', '363', '348', '579', '577', '288', '290', '294', '364', '452', '488', '492', '496', '500', '504', '508', '512', '516', '520', '524', '456', '528', '532', '536', '540', '544', '548', '460', '464', '468', '472', '476', '480', '484', '454', '490', '494', '498', '502', '506', '510', '514', '518', '522', '526', '458', '530', '534', '538', '542', '546', '550', '462', '466', '470', '474', '478', '482', '486', '453', '489', '493', '497', '501', '505', '509', '513', '517', '521', '525', '457', '529', '533', '537', '541', '545', '549', '461', '465', '469', '473', '477', '481', '485', '377', '580', '582', '574', '351', '349', '291', '374', '575', '201', '175', '89', '111', '613', '124', '125', '607')) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `nk_catalog_product_entity_decimal` AS `t_d` INNER JOIN `nk_catalog_product_entity` AS `e` ON e.row_id = t_d.row_id AND (e.created_in <= '1561953600' AND e.updated_in > '1561953600') LEFT JOIN `nk_catalog_product_entity_decimal` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.row_id = t_d.row_id AND t_s.store_id = 1 WHERE (e.entity_id IN (143)) AND (t_d.attribute_id IN ('81', '132', '152', '98', '126', '135', '134', '77', '603', '78', '92', '617', '615', '616', '82')) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `nk_catalog_product_entity_text` AS `t_d` INNER JOIN `nk_catalog_product_entity` AS `e` ON e.row_id = t_d.row_id AND (e.created_in <= '1561953600' AND e.updated_in > '1561953600') LEFT JOIN `nk_catalog_product_entity_text` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.row_id = t_d.row_id AND t_s.store_id = 1 WHERE (e.entity_id IN (143)) AND (t_d.attribute_id IN ('620', '621', '103', '75', '85', '200', '76', '210', '450', '451', '455', '491', '495', '499', '503', '507', '511', '515', '519', '523', '527', '459', '531', '535', '539', '543', '547', '551', '463', '467', '471', '475', '479', '483', '487')) AND (t_d.store_id = IFNULL(t_s.store_id, 0)) UNION ALL SELECT `t_d`.`attribute_id`, `e`.`entity_id`, `t_d`.`value` AS `default_value`, `t_s`.`value` AS `store_value`, IF(t_s.value_id IS NULL, t_d.value, t_s.value) AS `value` FROM `nk_catalog_product_entity_datetime` AS `t_d` INNER JOIN `nk_catalog_product_entity` AS `e` ON e.row_id = t_d.row_id AND (e.created_in <= '1561953600' AND e.updated_in > '1561953600') LEFT JOIN `nk_catalog_product_entity_datetime` AS `t_s` ON t_s.attribute_id = t_d.attribute_id AND t_s.row_id = t_d.row_id AND t_s.store_id = 1 WHERE (e.entity_id IN (143)) AND (t_d.attribute_id IN ('101', '102', '94', '95', '606', '79', '80')) AND (t_d.store_id = IFNULL(t_s.store_id, 0))