Database Queries

167 duplicated queries found.

Всего 318 записи.
TimeDurationTypeDuplicatedQuery
   
22:54:54.5560.1 msSELECT1
SELECT * FROM languages WHERE visible=1 ORDER BY sort_order

22:54:54.5570.1 msSELECT2
SELECT MAX(updated_at) FROM languages

22:54:54.5570.1 msSELECT2
SELECT MAX(updated_at) FROM languages

22:54:54.5570.6 msSHOW1
SHOW FULL COLUMNS FROM `redirects`
22:54:54.5580.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'redirects' AND `kcu`.`TABLE_NAME` = 'redirects'

22:54:54.5590.2 msSELECT1
SELECT * FROM `redirects` WHERE `from`='/js513-serue-dzhunsu-s-potertostjamu'

22:54:54.5590.2 msSELECT1
SELECT `retail`, `wholesale`, `dropshipping` FROM `social_visible_price` WHERE `alias`='js513-serue-dzhunsu-s-potertostjamu'

22:54:54.5600.2 msSELECT1
SELECT `model`, `redirectID`, `primaryKey`, `controller`, `status` FROM aliases WHERE alias='/js513-serue-dzhunsu-s-potertostjamu'

22:54:54.5600.4 msSHOW1
SHOW FULL COLUMNS FROM `shop_product`
22:54:54.5610.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_product' AND `kcu`.`TABLE_NAME` = 'shop_product'

22:54:54.5610.2 msSELECT1
SELECT * FROM `shop_product` WHERE `id`='750'

22:54:54.5620.7 msSHOW1
SHOW FULL COLUMNS FROM `shop_product_lang`
22:54:54.5630.4 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_product_lang' AND `kcu`.`TABLE_NAME` = 'shop_product_lang'

22:54:54.5630.1 msSELECT1
SELECT * FROM `shop_product_lang` WHERE (`language`='ru') AND (`owner_id`=750)

22:54:54.5640.4 msSELECT1
SELECT EXISTS(SELECT * FROM `shop_product_views` WHERE (`product_id`=750) AND (`session_id`='') AND (`created_at` BETWEEN 1747256400 AND 1747342800))

22:54:54.5640.5 msSHOW1
SHOW FULL COLUMNS FROM `shop_product_views`
22:54:54.5650.4 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_product_views' AND `kcu`.`TABLE_NAME` = 'shop_product_views'

22:54:54.5660.2 msSELECT1
SELECT EXISTS(SELECT * FROM `shop_product` WHERE `shop_product`.`id`=750)

22:54:54.5670.4 msINSERT1
INSERT INTO `shop_product_views` (`product_id`, `session_id`, `created_at`) VALUES (750, '', 1747338894)

22:54:54.5690.3 msSELECT1
SELECT COUNT(*) FROM `shop_product_views` WHERE `session_id`=''

22:54:54.5690.3 msSELECT1
SELECT `id` FROM `shop_product_views` WHERE `session_id`='' ORDER BY `created_at` DESC LIMIT 20

22:54:54.5701.2 msDELETE1
DELETE FROM `shop_product_views` WHERE (`id` NOT IN ('8520344', '8520343', '8520342', '8520341', '8520340', '8520339', '8520338', '8520337', '8520336', '8520335', '8520334', '8520333', '8520332', '8520331', '8520330', '8520329', '8520328', '8520327', '8520326', '8520325')) AND (`session_id`='')

22:54:54.5710.3 msSELECT1
SELECT `main`.`id`, `main`.`owner_id`, `main`.`title`, `main`.`description` FROM `Size_Table` `main` WHERE (`main`.`language`='ru') AND (`main`.`owner_id`=750)

22:54:54.5720.2 msSELECT1
SELECT `lang`.`size_bloc_header`, `lang`.`size_bloc_footer`, `lang`.`size_bloc_in_description`, `lang`.`measurement_bloc_header`, `lang`.`measurement_bloc_footer`, `lang`.`measurement_your_body` FROM `category_size` `main` LEFT JOIN `category_size_lang` `lang` ON main.id=lang.owner_id AND lang.language='ru' WHERE `main`.`category_id`=25

22:54:54.5720.7 msSELECT4
SELECT `img`.`id`, `img`.`path`, `img`.`process_updated_at`, `attr`.`attribute_id`, `attr`.`attribute_list_id`, `image_lang`.`alt`, `image_lang`.`title` FROM `shop_product_images` `img` LEFT JOIN `shop_product_images_attributes` `attr` ON attr.image_id = img.id LEFT JOIN `shop_product_images_lang` `image_lang` ON image_lang.owner_id = img.id WHERE (`img`.`product_id`=750) AND (`img`.`cover`=1)

22:54:54.5740.4 msSELECT1
SELECT `main`.`id`, `main`.`path`, `image_lang`.`alt`, `main`.`process_updated_at`, `image_lang`.`title` FROM `shop_product_images` `main` LEFT JOIN `shop_product_images_lang` `image_lang` ON image_lang.owner_id = main.id WHERE `main`.`product_id`=750 ORDER BY `main`.`sort_order`

22:54:54.5740.5 msSHOW1
SHOW FULL COLUMNS FROM `shop_product_images`
22:54:54.5750.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_product_images' AND `kcu`.`TABLE_NAME` = 'shop_product_images'

22:54:54.5750.2 msSELECT1
SELECT * FROM `shop_product_images_attributes` WHERE `image_id` IN ('8261', '8262', '8263', '8264')

22:54:54.5770.5 msSELECT1
SELECT `attr`.`type`, `alang`.`title` as `title`, `listlang`.`title` as `listValue` FROM `shop_products_attributes` `main` LEFT JOIN `shop_attributes` `attr` ON main.attribute_id=attr.id LEFT JOIN `shop_attributes_lang` `alang` ON alang.owner_id=main.attribute_id AND alang.language='ru' LEFT JOIN `shop_attributes_list_lang` `listlang` ON listlang.owner_id=main.attribute_list_id AND listlang.language='ru' WHERE (`main`.`product_id`=750) AND (`attr`.`visible_features`=1) ORDER BY `attr`.`sort_order`

22:54:54.5780.1 msSELECT1
SELECT `main`.`field_key`, `mainL`.`field_value` FROM `shop_settings` `main` LEFT JOIN `shop_settings_lang` `mainL` ON mainL.owner_id=main.id WHERE `mainL`.`language`='ru'

22:54:54.5780.1 msSELECT5
SELECT * FROM `shop_currency` WHERE `main_in_shop`=1

22:54:54.5780.4 msSHOW1
SHOW FULL COLUMNS FROM `shop_currency`
22:54:54.5790.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_currency' AND `kcu`.`TABLE_NAME` = 'shop_currency'

22:54:54.5790.4 msSHOW1
SHOW FULL COLUMNS FROM `shop_currency_lang`
22:54:54.5800.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_currency_lang' AND `kcu`.`TABLE_NAME` = 'shop_currency_lang'

22:54:54.5800.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.5800.1 msSELECT4
SELECT * FROM `shop_currency` WHERE `main`=1

22:54:54.5810.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.5810.1 msSELECT5
SELECT * FROM `shop_currency` WHERE `main_in_shop`=1

22:54:54.5810.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.5810.1 msSELECT4
SELECT * FROM `shop_currency` WHERE `main`=1

22:54:54.5820.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.5820.1 msSELECT3
SELECT SUM(quantity) FROM `shop_document_content` INNER JOIN `shop_document` ON `shop_document_content`.document_id=`shop_document`.id WHERE (`shop_document`.`user_id` IS NULL) AND (`shop_document`.`state_id` IS NULL)

22:54:54.5820.1 msSELECT3
SELECT `count_previous_month` FROM `custom_order_repository` WHERE `custom_order_repository`.`user_id` IS NULL

22:54:54.5820.1 msSELECT3
SELECT `count_previous_twelve_months` FROM `custom_order_repository` WHERE `custom_order_repository`.`user_id` IS NULL

22:54:54.5820.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.5830.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 139789) AND (`discount_conditions`.`quantity_to` >= 139789) AND (`discount_conditions`.`format`='moment') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5830.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 0) AND (`discount_conditions`.`quantity_to` >= 0) AND (`discount_conditions`.`format`='previous_month') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5830.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 0) AND (`discount_conditions`.`quantity_to` >= 0) AND (`discount_conditions`.`format`='previous_year') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5830.4 msSHOW1
SHOW FULL COLUMNS FROM `promotions`
22:54:54.5830.2 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'promotions' AND `kcu`.`TABLE_NAME` = 'promotions'

22:54:54.5840.4 msSHOW1
SHOW FULL COLUMNS FROM `promotions_lang`
22:54:54.5840.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'promotions_lang' AND `kcu`.`TABLE_NAME` = 'promotions_lang'

22:54:54.5850.1 msSELECT1
SELECT `promotions`.* FROM `promotions` LEFT JOIN `shop_document` ON `promotions`.`id` = `shop_document`.`promotion_id` WHERE (`shop_document`.`user_id` IS NULL) AND (`shop_document`.`id` IS NULL)

22:54:54.5850.2 msSELECT1
SELECT * FROM `shop_document` WHERE `promotion_id`=1

22:54:54.5860.1 msSELECT1
SELECT * FROM `promotions_lang` WHERE (`language`='ru') AND (`owner_id`=1)

22:54:54.5860.1 msSELECT3
SELECT SUM(quantity) FROM `shop_document_content` INNER JOIN `shop_document` ON `shop_document_content`.document_id=`shop_document`.id WHERE (`shop_document`.`user_id` IS NULL) AND (`shop_document`.`state_id` IS NULL)

22:54:54.5860.1 msSELECT3
SELECT `count_previous_month` FROM `custom_order_repository` WHERE `custom_order_repository`.`user_id` IS NULL

22:54:54.5860.1 msSELECT3
SELECT `count_previous_twelve_months` FROM `custom_order_repository` WHERE `custom_order_repository`.`user_id` IS NULL

22:54:54.5860.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 139789) AND (`discount_conditions`.`quantity_to` >= 139789) AND (`discount_conditions`.`format`='moment') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5870.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 0) AND (`discount_conditions`.`quantity_to` >= 0) AND (`discount_conditions`.`format`='previous_month') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5870.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 0) AND (`discount_conditions`.`quantity_to` >= 0) AND (`discount_conditions`.`format`='previous_year') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5870.1 msSELECT1
SELECT `discount` FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id INNER JOIN `discount_status_lang` ON `discount_status_lang`.owner_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 139789) AND (`discount_conditions`.`quantity_to` >= 139789) AND (`discount_conditions`.`format`='moment') AND (`discount_status`.`type_user` IS NULL) AND (`discount_status_lang`.`language`='ru')

22:54:54.5870.1 msSELECT3
SELECT SUM(quantity) FROM `shop_document_content` INNER JOIN `shop_document` ON `shop_document_content`.document_id=`shop_document`.id WHERE (`shop_document`.`user_id` IS NULL) AND (`shop_document`.`state_id` IS NULL)

22:54:54.5870.1 msSELECT3
SELECT `count_previous_month` FROM `custom_order_repository` WHERE `custom_order_repository`.`user_id` IS NULL

22:54:54.5870.1 msSELECT3
SELECT `count_previous_twelve_months` FROM `custom_order_repository` WHERE `custom_order_repository`.`user_id` IS NULL

22:54:54.5880.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 139789) AND (`discount_conditions`.`quantity_to` >= 139789) AND (`discount_conditions`.`format`='moment') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5880.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 0) AND (`discount_conditions`.`quantity_to` >= 0) AND (`discount_conditions`.`format`='previous_month') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5880.1 msSELECT3
SELECT MAX(discount) FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 0) AND (`discount_conditions`.`quantity_to` >= 0) AND (`discount_conditions`.`format`='previous_year') AND (`discount_status`.`type_user` IS NULL)

22:54:54.5880.1 msSELECT1
SELECT `discount_type` FROM `discount_conditions` INNER JOIN `discount_status` ON `discount_conditions`.discount_status_id=`discount_status`.id INNER JOIN `discount_status_lang` ON `discount_status_lang`.owner_id=`discount_status`.id WHERE (`discount_conditions`.`quantity_from` <= 139789) AND (`discount_conditions`.`quantity_to` >= 139789) AND (`discount_conditions`.`format`='moment') AND (`discount_status`.`type_user` IS NULL) AND (`discount_status_lang`.`language`='ru')

22:54:54.5880.1 msSELECT1
SELECT `id` FROM `shop_stores` WHERE `defstore`=1 ORDER BY `sort_order`

22:54:54.5890.1 msSELECT1
SELECT SUM(quantity) AS `in_stock`, `product_id` FROM `shop_product_store` WHERE (0=1) AND (`store_id`='1') GROUP BY `product_id`

22:54:54.5890.1 msSELECT1
SELECT `aliases`.`primaryKey`, `aliases`.`alias` FROM `aliases` `aliases` WHERE ((`aliases`.`model`='app\\modules\\shop\\models\\Product') AND (`aliases`.`redirectID`=0)) AND (0=1)

22:54:54.5890.1 msSELECT1
SELECT `img`.`product_id`, `img`.`id`, `img`.`path`, `img`.`process_updated_at`, `attr`.`attribute_id`, `attr`.`attribute_list_id`, `image_lang`.`alt`, `image_lang`.`title` FROM `shop_product_images` `img` LEFT JOIN `shop_product_images_attributes` `attr` ON attr.image_id = img.id LEFT JOIN `shop_product_images_lang` `image_lang` ON image_lang.owner_id = img.id WHERE (0=1) AND (`img`.`cover`=1)

22:54:54.5890.1 msSELECT1
SELECT `opts`.`product_id`, `opts`.`attribute_id`, `opts`.`value`, `list`.`sort_order`, `attr`.`type`, `listlang`.`title` AS `listValue`, `list`.`color`, SUM(store.quantity) AS `total_quantity`, `alang`.`title` AS `title` FROM `shop_product_store_options` `opts` LEFT JOIN `shop_attributes` `attr` ON attr.id=opts.attribute_id LEFT JOIN `shop_attributes_lang` `alang` ON alang.owner_id=opts.attribute_id AND alang.language='ru' LEFT JOIN `shop_product_store` `store` ON opts.store_id = store.id LEFT JOIN `shop_attributes_list` `list` ON list.id=opts.value LEFT JOIN `shop_attributes_list_lang` `listlang` ON listlang.owner_id=opts.value AND listlang.language='ru' WHERE 0=1 GROUP BY `opts`.`product_id`, `opts`.`attribute_id`, `opts`.`value`, `attr`.`type`, `listlang`.`title`, `list`.`color` ORDER BY `attr`.`sort_order`, `total_quantity` DESC

22:54:54.5890.1 msSELECT1
SELECT `lang`.`mark`, `shc`.`color`, `shc`.`bgcolor`, `shc`.`stroke_color`, `main`.`product_id`, `main`.`showcase_id` FROM `shop_product_showcases` `main` INNER JOIN `shop_showcases` `shc` ON main.showcase_id=shc.id INNER JOIN `shop_showcases_lang` `lang` ON main.showcase_id=lang.owner_id WHERE (`language`='ru') AND (0=1) ORDER BY `shc`.`sort_order`

22:54:54.5890.1 msSELECT2
SELECT SUM(quantity) FROM `shop_document_content` INNER JOIN `shop_document` ON `shop_document_content`.document_id=`shop_document`.id WHERE (`shop_document`.`session_id`='') AND (`shop_document`.`state_id` IS NULL)

22:54:54.5900.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.5900.1 msSELECT1
SELECT `shop_prices`.`percent`, `value`, `discount_value`, `product_id`, `shop_prices_lang`.`price_info`, `shop_prices_lang`.`title`, `shop_product`.`parent_id` FROM `shop_product_prices` LEFT JOIN `shop_prices` ON `shop_prices`.id=`shop_product_prices`.price_id LEFT JOIN `shop_prices_lang` ON `shop_prices`.id=`shop_prices_lang`.owner_id LEFT JOIN `shop_product` ON `shop_product`.id=`shop_product_prices`.product_id WHERE (0=1) AND (`price_id`='1') AND (`shop_prices_lang`.`language`='ru')

22:54:54.5900.1 msSELECT1
SELECT `shop_prices`.`percent`, `value`, `discount_value`, `product_id`, `shop_prices_lang`.`price_info`, `shop_prices_lang`.`title`, `shop_product`.`parent_id` FROM `shop_product_prices` LEFT JOIN `shop_prices` ON `shop_prices`.id=`shop_product_prices`.price_id LEFT JOIN `shop_prices_lang` ON `shop_prices`.id=`shop_prices_lang`.owner_id LEFT JOIN `shop_product` ON `shop_product`.id=`shop_product_prices`.product_id WHERE (0=1) AND (`price_id`=1) AND (`shop_prices_lang`.`language`='ru')

22:54:54.5900.1 msSELECT2
SELECT SUM(quantity) FROM `shop_document_content` INNER JOIN `shop_document` ON `shop_document_content`.document_id=`shop_document`.id WHERE (`shop_document`.`session_id`='') AND (`shop_document`.`state_id` IS NULL)

22:54:54.5900.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.5900.4 msSELECT1
SELECT `shop_prices`.`percent`, `value`, `discount_value`, `product_id`, `shop_prices_lang`.`price_info`, `shop_prices_lang`.`title`, `shop_product`.`parent_id` FROM `shop_product_prices` LEFT JOIN `shop_prices` ON `shop_prices`.id=`shop_product_prices`.price_id LEFT JOIN `shop_prices_lang` ON `shop_prices`.id=`shop_prices_lang`.owner_id LEFT JOIN `shop_product` ON `shop_product`.id=`shop_product_prices`.product_id WHERE (`product_id`='750') AND (`price_id`='1') AND (`shop_prices_lang`.`language`='ru')

22:54:54.5910.6 msSELECT1
SELECT `shop_prices`.`percent`, `value`, `discount_value`, `product_id`, `shop_prices_lang`.`price_info`, `shop_prices_lang`.`title`, `shop_product`.`parent_id` FROM `shop_product_prices` LEFT JOIN `shop_prices` ON `shop_prices`.id=`shop_product_prices`.price_id LEFT JOIN `shop_prices_lang` ON `shop_prices`.id=`shop_prices_lang`.owner_id LEFT JOIN `shop_product` ON `shop_product`.id=`shop_product_prices`.product_id WHERE (`product_id`='750') AND (`price_id`=1) AND (`shop_prices_lang`.`language`='ru')

22:54:54.5920.1 msSELECT1
SELECT * FROM `category` WHERE `id`=25

22:54:54.5920.5 msSHOW1
SHOW FULL COLUMNS FROM `category`
22:54:54.5920.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'category' AND `kcu`.`TABLE_NAME` = 'category'

22:54:54.5930.4 msSHOW1
SHOW FULL COLUMNS FROM `category_lang`
22:54:54.5930.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'category_lang' AND `kcu`.`TABLE_NAME` = 'category_lang'

22:54:54.5940.1 msSELECT1
SELECT * FROM `category_lang` WHERE (`language`='ru') AND (`owner_id`=25)

22:54:54.5940.1 msSELECT1
SELECT `tape_id` FROM `category_tapes` WHERE `category_id`=25

22:54:54.5950.1 msSELECT1
SELECT `tt`.`title` AS `title`, `t`.`id` AS `id`, `t`.`construct_id` AS `constructId` FROM `shop_tapes` `t` LEFT JOIN `shop_tapes_lang` `tt` ON t.id=tt.owner_id AND tt.language='ru' WHERE (`t`.`visible`=1) AND ((`t`.`show_on_catalog`=1) OR (`t`.`id` IN ('9', '13', '14', 5))) ORDER BY `t`.`sort_order`

22:54:54.5950.1 msSELECT1
SELECT `id` FROM `user_type` WHERE `is_default_for_view`=1

22:54:54.5950.5 msSHOW1
SHOW FULL COLUMNS FROM `shop_construct_product`
22:54:54.5960.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_construct_product' AND `kcu`.`TABLE_NAME` = 'shop_construct_product'

22:54:54.5960.1 msSELECT1
SELECT * FROM `shop_construct_product` WHERE `id`='54'

22:54:54.5960.4 msSHOW1
SHOW FULL COLUMNS FROM `shop_construct_product_lang`
22:54:54.5970.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_construct_product_lang' AND `kcu`.`TABLE_NAME` = 'shop_construct_product_lang'

22:54:54.5970.1 msSELECT1
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=54)

22:54:54.5980.1 msSELECT1
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=54)

22:54:54.5980.1 msSELECT1
SELECT * FROM `shop_construct_product` WHERE `id`='55'

22:54:54.5980.1 msSELECT1
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=55)

22:54:54.5980.1 msSELECT1
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=55)

22:54:54.5990.3 msSELECT1
SELECT SUM(quantity) AS `quantity` FROM `shop_product_store` WHERE (`product_id`=750) AND (`store_id`='1')

22:54:54.5990.2 msSELECT1
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE `product_id`=750 GROUP BY `product_id`

22:54:54.6000.2 msSELECT2
SELECT * FROM `shop_product_videos` WHERE (`product_id`=750) AND (`attribute_list_id`='54')

22:54:54.6000.4 msSELECT1
SELECT `id` FROM `shop_product_images` WHERE (`product_id`=750) AND (`cover`=1)

22:54:54.6010.3 msSELECT1
SELECT `attribute_list_id` FROM `shop_product_images_attributes` WHERE `image_id`='8261'

22:54:54.6010.1 msSELECT2
SELECT * FROM `shop_product_videos` WHERE (`product_id`=750) AND (`attribute_list_id`='54')

22:54:54.6020.1 msSELECT1
SELECT * FROM `category` WHERE `id`=0

22:54:54.6020.7 msSELECT1
SELECT `t1`.`message` AS `message`, `t2`.`translation` AS `translation` FROM `source_message` `t1`, `message` `t2` WHERE (`t1`.`id`=`t2`.`id`) AND (`t1`.`category`='app') AND (`t2`.`language`='ru')

22:54:54.6040.2 msSELECT1
SELECT `title` FROM `shop_attributes_list_lang` WHERE (`owner_id`='54') AND (`language`='ru')

22:54:54.6415.9 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` < 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order` DESC

22:54:54.6470.5 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` < 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order` DESC

22:54:54.6484.6 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` > 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order`

22:54:54.6530.2 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` > 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order`

22:54:54.6530.1 msSELECT4
SELECT `img`.`id`, `img`.`path`, `img`.`process_updated_at`, `attr`.`attribute_id`, `attr`.`attribute_list_id`, `image_lang`.`alt`, `image_lang`.`title` FROM `shop_product_images` `img` LEFT JOIN `shop_product_images_attributes` `attr` ON attr.image_id = img.id LEFT JOIN `shop_product_images_lang` `image_lang` ON image_lang.owner_id = img.id WHERE (`img`.`product_id`=750) AND (`img`.`cover`=1)

22:54:54.6540.5 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` < 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order` DESC

22:54:54.6550.4 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` < 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order` DESC

22:54:54.6560.2 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` > 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order`

22:54:54.6560.1 msSELECT4
SELECT `alias` FROM `shop_product` WHERE (`sort_order` > 2713) AND (`parent_id`=25) AND (`visible`=1) ORDER BY `sort_order`

22:54:54.6560.1 msSELECT1
SELECT `main`.`field_key`, `mainL`.`field_value` FROM `settings` `main` LEFT JOIN `settings_lang` `mainL` ON mainL.owner_id=main.id WHERE `mainL`.`language`='ru'

22:54:54.6560.5 msSELECT1
SELECT `lang`.`mark`, `shc`.`color`, `shc`.`bgcolor`, `shc`.`id` FROM `shop_product_showcases` `main` INNER JOIN `shop_showcases` `shc` ON main.showcase_id=shc.id INNER JOIN `shop_showcases_lang` `lang` ON main.showcase_id=lang.owner_id WHERE (`language`='ru') AND (`product_id`=750) ORDER BY `shc`.`sort_order`

22:54:54.6570.1 msSELECT5
SELECT * FROM `shop_currency` WHERE `main_in_shop`=1

22:54:54.6570.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.6570.1 msSELECT4
SELECT * FROM `shop_currency` WHERE `main`=1

22:54:54.6580.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.6580.1 msSELECT2
SELECT `price_id` FROM `user_type` WHERE `is_default_for_view`=1

22:54:54.6580.4 msSELECT2
SELECT * FROM `shop_product_prices` INNER JOIN `shop_prices` ON `shop_product_prices`.price_id=`shop_prices`.id INNER JOIN `shop_prices_lang` ON `shop_prices_lang`.owner_id=`shop_prices`.id WHERE (`shop_product_prices`.`product_id`=750) AND (`shop_product_prices`.`price_id`=1) AND (`shop_prices_lang`.`language`='ru')

22:54:54.6590.4 msSELECT3
SELECT * FROM `shop_product_prices` INNER JOIN `shop_prices` ON `shop_product_prices`.price_id=`shop_prices`.id INNER JOIN `shop_prices_lang` ON `shop_prices_lang`.owner_id=`shop_prices`.id WHERE (`shop_product_prices`.`product_id`=750) AND (`shop_product_prices`.`price_id`='1') AND (`shop_prices_lang`.`language`='ru')

22:54:54.6590.1 msSELECT1
SELECT `color`, `bgcolor`, `stroke_color` FROM `shop_showcases` `s` WHERE `id`=3

22:54:54.6590.2 msSELECT4
SELECT `img`.`id`, `img`.`path`, `img`.`process_updated_at`, `attr`.`attribute_id`, `attr`.`attribute_list_id`, `image_lang`.`alt`, `image_lang`.`title` FROM `shop_product_images` `img` LEFT JOIN `shop_product_images_attributes` `attr` ON attr.image_id = img.id LEFT JOIN `shop_product_images_lang` `image_lang` ON image_lang.owner_id = img.id WHERE (`img`.`product_id`=750) AND (`img`.`cover`=1)

22:54:54.6600.1 msSELECT4
SELECT `img`.`id`, `img`.`path`, `img`.`process_updated_at`, `attr`.`attribute_id`, `attr`.`attribute_list_id`, `image_lang`.`alt`, `image_lang`.`title` FROM `shop_product_images` `img` LEFT JOIN `shop_product_images_attributes` `attr` ON attr.image_id = img.id LEFT JOIN `shop_product_images_lang` `image_lang` ON image_lang.owner_id = img.id WHERE (`img`.`product_id`=750) AND (`img`.`cover`=1)

22:54:54.6600.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.6600.1 msSELECT2
SELECT COUNT(*), MAX(`updated_at`) FROM `shop_prices`

22:54:54.6600.7 msSHOW1
SHOW FULL COLUMNS FROM `shop_prices`
22:54:54.6610.9 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_prices' AND `kcu`.`TABLE_NAME` = 'shop_prices'

22:54:54.6620.2 msSELECT1
SELECT * FROM `shop_prices` WHERE `id`='1'

22:54:54.6630.6 msSHOW1
SHOW FULL COLUMNS FROM `shop_prices_lang`
22:54:54.6630.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_prices_lang' AND `kcu`.`TABLE_NAME` = 'shop_prices_lang'

22:54:54.6640.1 msSELECT2
SELECT * FROM `shop_prices_lang` WHERE (`language`='ru') AND (`owner_id`=1)

22:54:54.6650.3 msSELECT1
SELECT * FROM `shop_document` WHERE (`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`state_id` IS NULL) ORDER BY `id` DESC

22:54:54.6650.1 msSELECT1
SELECT * FROM `shop_currency` WHERE `default_from_prices`=1

22:54:54.6660.1 msSELECT2
SELECT * FROM `shop_currency_lang` WHERE (`language`='ru') AND (`owner_id`=1)

22:54:54.6660.6 msSHOW1
SHOW FULL COLUMNS FROM `shop_document`
22:54:54.6670.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_document' AND `kcu`.`TABLE_NAME` = 'shop_document'

22:54:54.6670.1 msSELECT2
SELECT SUM(quantity) FROM `shop_document_content` WHERE `document_id` IS NULL

22:54:54.6680.2 msSELECT1
SELECT COUNT(*) FROM `shop_product_options` WHERE `product_id`=750

22:54:54.6680.1 msSELECT5
SELECT * FROM `shop_currency` WHERE `main_in_shop`=1

22:54:54.6680.1 msSELECT2
SELECT * FROM `shop_currency_lang` WHERE (`language`='ru') AND (`owner_id`=1)

22:54:54.6680.5 msSELECT1
SELECT (tprice.`value`)*tcurr.rate/'1.0000' AS `value`, (tprice.`discount_value`)*tcurr.rate/'1.0000' AS `discount_value`, `tcurr`.`id` AS `currency_id`, `tcurr`.`rate`, `tpricelang`.`title`, `tpricelang`.`price_info`, `tprice`.`price_id`, `tprice`.`discount_value` AS `discount_value_rate` FROM `shop_product_prices` `tprice` LEFT JOIN `shop_currency` `tcurr` ON tcurr.id=tprice.currency_id LEFT JOIN `shop_prices_lang` `tpricelang` ON tprice.price_id=tpricelang.owner_id AND tpricelang.language='ru' LEFT JOIN `shop_prices` `pr` ON tprice.price_id=pr.id WHERE `tprice`.`product_id`=750 ORDER BY `pr`.`sort_order`

22:54:54.6690.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.6690.1 msSELECT2
SELECT COUNT(*), MAX(`updated_at`) FROM `shop_prices`

22:54:54.6690.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.6690.1 msSELECT3
SELECT * FROM `shop_product_prices` INNER JOIN `shop_prices` ON `shop_product_prices`.price_id=`shop_prices`.id INNER JOIN `shop_prices_lang` ON `shop_prices_lang`.owner_id=`shop_prices`.id WHERE (`shop_product_prices`.`product_id`=750) AND (`shop_product_prices`.`price_id`='1') AND (`shop_prices_lang`.`language`='ru')

22:54:54.6700.3 msSELECT1
SELECT * FROM `shop_product_prices` INNER JOIN `shop_prices` ON `shop_product_prices`.price_id=`shop_prices`.id INNER JOIN `shop_prices_lang` ON `shop_prices_lang`.owner_id=`shop_prices`.id WHERE (`shop_product_prices`.`product_id`=750) AND (`shop_product_prices`.`price_id`=2) AND (`shop_prices_lang`.`language`='ru')

22:54:54.6700.1 msSELECT2
SELECT `price_id` FROM `user_type` WHERE `is_default_for_view`=1

22:54:54.6700.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.6710.1 msSELECT3
SELECT * FROM `shop_product_prices` INNER JOIN `shop_prices` ON `shop_product_prices`.price_id=`shop_prices`.id INNER JOIN `shop_prices_lang` ON `shop_prices_lang`.owner_id=`shop_prices`.id WHERE (`shop_product_prices`.`product_id`=750) AND (`shop_product_prices`.`price_id`='1') AND (`shop_prices_lang`.`language`='ru')

22:54:54.6710.1 msSELECT2
SELECT * FROM `shop_product_prices` INNER JOIN `shop_prices` ON `shop_product_prices`.price_id=`shop_prices`.id INNER JOIN `shop_prices_lang` ON `shop_prices_lang`.owner_id=`shop_prices`.id WHERE (`shop_product_prices`.`product_id`=750) AND (`shop_product_prices`.`price_id`=1) AND (`shop_prices_lang`.`language`='ru')

22:54:54.6710.1 msSELECT1
SELECT * FROM `shop_prices` WHERE `shop_prices`.`id`=1

22:54:54.6710.1 msSELECT2
SELECT * FROM `shop_prices_lang` WHERE (`language`='ru') AND (`owner_id`=1)

22:54:54.6720.1 msSELECT8
SELECT `id` FROM `shop_prices` WHERE `base_price`=1

22:54:54.6720.1 msSELECT1
SELECT * FROM `shop_prices` WHERE `shop_prices`.`id`=2

22:54:54.6720.1 msSELECT1
SELECT * FROM `shop_prices_lang` WHERE (`language`='ru') AND (`owner_id`=2)

22:54:54.6730.1 msSELECT1
SELECT * FROM `shop_prices` WHERE `shop_prices`.`id`=3

22:54:54.6730.1 msSELECT1
SELECT * FROM `shop_prices_lang` WHERE (`language`='ru') AND (`owner_id`=3)

22:54:54.6740.3 msSELECT1
SELECT EXISTS(SELECT * FROM `shop_product_prices` WHERE (`promotion_end_date` IS NOT NULL) AND (`product_id`=750))

22:54:54.6741.2 msSELECT1
SELECT `opts`.`product_id`, `opts`.`attribute_id`, `opts`.`value`, `list`.`sort_order`, `alang`.`title` AS `title`, `attr`.`type`, `listlang`.`title` AS `listValue`, `thumbs`.`path`, `list`.`color`, `list`.`image`, `img`.`updated_at`, SUM(store.quantity) AS `suma` FROM `shop_product_store_options` `opts` LEFT JOIN `shop_attributes` `attr` ON attr.id=opts.attribute_id LEFT JOIN `shop_attributes_lang` `alang` ON alang.owner_id=opts.attribute_id AND alang.language='ru' LEFT JOIN `shop_product_store` `store` ON opts.store_id=store.id LEFT JOIN `shop_attributes_list` `list` ON list.id=opts.value LEFT JOIN `shop_attributes_list_lang` `listlang` ON listlang.owner_id=opts.value AND listlang.language='ru' LEFT JOIN `shop_product_thumbs` `thumbs` ON thumbs.product_id=opts.product_id AND thumbs.attribute_id=opts.attribute_id AND thumbs.attribute_list_id=opts.value LEFT JOIN `shop_product_images` `img` ON img.path=thumbs.path AND img.product_id=opts.product_id LEFT JOIN `shop_product_images_lang` `img_lang` ON img_lang.owner_id=img.id WHERE `store`.`product_id`=750 GROUP BY `opts`.`product_id`, `opts`.`attribute_id`, `opts`.`value`, `alang`.`title`, `attr`.`type`, `listlang`.`title`, `thumbs`.`path`, `list`.`color`, `list`.`image` ORDER BY `attr`.`sort_order`, `suma` DESC

22:54:54.6750.3 msSELECT1
SELECT `main`.`attribute_id`, `main`.`value`, `main`.`store_id` FROM `shop_product_store_options` `main` WHERE (`main`.`product_id`=750) AND (`main`.`attribute_id`=1) GROUP BY `attribute_id`, `value`

22:54:54.6760.3 msSELECT1
SELECT `main`.`attribute_id`, `main`.`value` FROM `shop_product_store_options` `main` INNER JOIN `shop_product_store_options` `opts0` ON opts0.store_id=main.store_id AND opts0.attribute_id=1 AND opts0.value='54' WHERE `main`.`product_id`=750 GROUP BY `attribute_id`, `value`

22:54:54.6760.2 msSELECT1
SELECT `document_content_id` FROM `reserve_quantity_document_content` WHERE (`product_id`='750') AND (`attribute_color_id`='1') AND (`attribute_list_color_id`='54')

22:54:54.6760.2 msSELECT1
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`='750') AND (`attribute_color_id`='1') AND (`attribute_list_color_id`='54') GROUP BY `product_id`

22:54:54.6770.4 msSELECT1
SELECT SUM(quantity) AS `quantity` FROM `shop_product_store` `main` INNER JOIN `shop_product_store_options` `t1` ON t1.store_id=main.id INNER JOIN `shop_product_store_options` `t2` ON t2.store_id=main.id WHERE (`main`.`product_id`=750) AND ((`t1`.`attribute_id`='1') AND (`t1`.`value`='54') AND (`t2`.`attribute_id`='2') AND (`t2`.`value`='635'))

22:54:54.6770.5 msSELECT1
SELECT SUM(quantity) AS `quantity` FROM `shop_product_store` `main` INNER JOIN `shop_product_store_options` `t1` ON t1.store_id=main.id INNER JOIN `shop_product_store_options` `t2` ON t2.store_id=main.id WHERE (`main`.`product_id`=750) AND ((`t1`.`attribute_id`='1') AND (`t1`.`value`='54') AND (`t2`.`attribute_id`='2') AND (`t2`.`value`='71'))

22:54:54.6780.4 msSELECT1
SELECT SUM(quantity) AS `quantity` FROM `shop_product_store` `main` INNER JOIN `shop_product_store_options` `t1` ON t1.store_id=main.id INNER JOIN `shop_product_store_options` `t2` ON t2.store_id=main.id WHERE (`main`.`product_id`=750) AND ((`t1`.`attribute_id`='1') AND (`t1`.`value`='54') AND (`t2`.`attribute_id`='2') AND (`t2`.`value`='69'))

22:54:54.6780.3 msSELECT1
SELECT SUM(quantity) AS `quantity` FROM `shop_product_store` `main` INNER JOIN `shop_product_store_options` `t1` ON t1.store_id=main.id INNER JOIN `shop_product_store_options` `t2` ON t2.store_id=main.id WHERE (`main`.`product_id`=750) AND ((`t1`.`attribute_id`='1') AND (`t1`.`value`='54') AND (`t2`.`attribute_id`='2') AND (`t2`.`value`='66'))

22:54:54.6790.3 msSELECT1
SELECT SUM(quantity) AS `quantity` FROM `shop_product_store` `main` INNER JOIN `shop_product_store_options` `t1` ON t1.store_id=main.id INNER JOIN `shop_product_store_options` `t2` ON t2.store_id=main.id WHERE (`main`.`product_id`=750) AND ((`t1`.`attribute_id`='1') AND (`t1`.`value`='54') AND (`t2`.`attribute_id`='2') AND (`t2`.`value`='73'))

22:54:54.6800.5 msSELECT1
SELECT EXISTS(SELECT `shop_document`.* FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=635) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL))

22:54:54.6810.5 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=635) AND (`color`.`value`=54)

22:54:54.6810.2 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=635) GROUP BY `product_id`

22:54:54.6820.4 msSELECT1
SELECT `shop_document_content`.`quantity` FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=635) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL)

22:54:54.6820.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=635) AND (`color`.`value`=54)

22:54:54.6830.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=635) GROUP BY `product_id`

22:54:54.6830.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=635) AND (`color`.`value`=54)

22:54:54.6830.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=635) GROUP BY `product_id`

22:54:54.6830.4 msSELECT1
SELECT EXISTS(SELECT `shop_document`.* FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=71) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL))

22:54:54.6840.3 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=71) AND (`color`.`value`=54)

22:54:54.6840.2 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=71) GROUP BY `product_id`

22:54:54.6850.4 msSELECT1
SELECT `shop_document_content`.`quantity` FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=71) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL)

22:54:54.6850.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=71) AND (`color`.`value`=54)

22:54:54.6850.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=71) GROUP BY `product_id`

22:54:54.6850.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=71) AND (`color`.`value`=54)

22:54:54.6860.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=71) GROUP BY `product_id`

22:54:54.6860.4 msSELECT1
SELECT EXISTS(SELECT `shop_document`.* FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=69) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL))

22:54:54.6860.3 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=69) AND (`color`.`value`=54)

22:54:54.6870.2 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=69) GROUP BY `product_id`

22:54:54.6870.3 msSELECT1
SELECT `shop_document_content`.`quantity` FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=69) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL)

22:54:54.6880.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=69) AND (`color`.`value`=54)

22:54:54.6880.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=69) GROUP BY `product_id`

22:54:54.6880.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=69) AND (`color`.`value`=54)

22:54:54.6880.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=69) GROUP BY `product_id`

22:54:54.6880.4 msSELECT1
SELECT EXISTS(SELECT `shop_document`.* FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=66) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL))

22:54:54.6890.3 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=66) AND (`color`.`value`=54)

22:54:54.6890.3 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=66) GROUP BY `product_id`

22:54:54.6900.4 msSELECT1
SELECT `shop_document_content`.`quantity` FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=66) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL)

22:54:54.6910.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=66) AND (`color`.`value`=54)

22:54:54.6910.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=66) GROUP BY `product_id`

22:54:54.6910.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=66) AND (`color`.`value`=54)

22:54:54.6910.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=66) GROUP BY `product_id`

22:54:54.6910.5 msSELECT1
SELECT EXISTS(SELECT `shop_document`.* FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=73) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL))

22:54:54.6920.4 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=73) AND (`color`.`value`=54)

22:54:54.6920.3 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=73) GROUP BY `product_id`

22:54:54.6930.5 msSELECT1
SELECT `shop_document_content`.`quantity` FROM `shop_document` LEFT JOIN `shop_document_content` ON `shop_document_content`.document_id=`shop_document`.id LEFT JOIN `shop_document_content_options` `color` ON color.line_id=`shop_document_content`.id AND color.attribute_id=1 LEFT JOIN `shop_document_content_options` `size` ON size.line_id=`shop_document_content`.id AND size.attribute_id=2 WHERE (`shop_document`.`session_id`='7iot24o451gfo8ajne90rstlmt') AND (`color`.`value`=54) AND (`size`.`value`=73) AND (`shop_document_content`.`product_id`=750) AND (`shop_document`.`state_id` IS NULL)

22:54:54.6940.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=73) AND (`color`.`value`=54)

22:54:54.6940.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=73) GROUP BY `product_id`

22:54:54.6940.1 msSELECT3
SELECT `store`.`quantity` FROM `shop_product_store_options` `size` LEFT JOIN `shop_product_store` `store` ON size.store_id=store.id AND size.attribute_id=2 LEFT JOIN `shop_product_store_options` `color` ON size.store_id=color.store_id AND color.attribute_id=1 WHERE (`size`.`product_id`=750) AND (`size`.`value`=73) AND (`color`.`value`=54)

22:54:54.6940.1 msSELECT3
SELECT SUM(quantity_reserve) AS `sumQuantity` FROM `reserve_quantity_document_content` WHERE (`product_id`=750) AND (`attribute_color_id`=1) AND (`attribute_list_color_id`=54) AND (`attribute_size_id`=2) AND (`attribute_list_size_id`=73) GROUP BY `product_id`

22:54:54.6950.1 msSELECT2
SELECT * FROM `social` WHERE (`visible`=1) AND (`type` IN (1, 2, 5, 6))

22:54:54.6950.1 msSELECT1
SELECT * FROM `goods_card_blocks` WHERE (`visible`=1) AND (`type`='section') AND (`main_block_on_desktop`=1) ORDER BY `sort_order`

22:54:54.6950.6 msSHOW1
SHOW FULL COLUMNS FROM `goods_card_blocks`
22:54:54.6960.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'goods_card_blocks' AND `kcu`.`TABLE_NAME` = 'goods_card_blocks'

22:54:54.6970.5 msSHOW1
SHOW FULL COLUMNS FROM `goods_card_blocks_lang`
22:54:54.6970.4 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'goods_card_blocks_lang' AND `kcu`.`TABLE_NAME` = 'goods_card_blocks_lang'

22:54:54.6980.1 msSELECT1
SELECT * FROM `goods_card_blocks_lang` WHERE (`language`='ru') AND (`owner_id`=1)

22:54:54.6980.1 msSELECT1
SELECT * FROM `goods_card_blocks` WHERE (`visible`=1) AND (`type`='item') AND (`id` != 4) ORDER BY `sort_order`

22:54:54.6980.1 msSELECT1
SELECT * FROM `goods_card_blocks_lang` WHERE (`language`='ru') AND (`owner_id` IN (6, 8, 5))

22:54:54.6990.1 msSELECT1
SELECT * FROM `goods_card_blocks` WHERE (`visible`=1) AND (`type`='section') ORDER BY `sort_order`

22:54:54.7000.1 msSELECT1
SELECT * FROM `goods_card_blocks_lang` WHERE (`language`='ru') AND (`owner_id` IN (1, 2, 3, 10))

22:54:54.7000.1 msSELECT1
SELECT * FROM `goods_card_blocks` WHERE (`visible`=1) AND (`type`='item') ORDER BY `sort_order`

22:54:54.7000.1 msSELECT1
SELECT * FROM `goods_card_blocks_lang` WHERE (`language`='ru') AND (`owner_id` IN (6, 8, 5, 4))

22:54:54.7010.3 msSELECT1
SELECT COUNT(*) FROM `shop_reviews` `main` WHERE (`object_class`='app\\modules\\shop\\models\\Product') AND (`object_id`=750) AND (`approved`=1) AND (`owner_id`=0)

22:54:54.7020.5 msSHOW1
SHOW FULL COLUMNS FROM `shop_reviews`
22:54:54.7020.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'shop_reviews' AND `kcu`.`TABLE_NAME` = 'shop_reviews'

22:54:54.7030.1 msSELECT2
SELECT * FROM `social` WHERE (`visible`=1) AND (`type` IN (1, 2, 5, 6))

22:54:54.7030.1 msSELECT2
SELECT `menu`.`id`, `menu`.`parent_id`, `menu`.`object`, `menu`.`object_id`, `menu`.`image` AS `img`, `menu_lang`.`title` AS `label`, `aliases`.`alias` AS `url` FROM `menu` `menu` LEFT JOIN `menu_lang` `menu_lang` ON menu_lang.owner_id=menu.id AND menu_lang.language='ru' LEFT JOIN `aliases` ON aliases.model=menu.object AND aliases.primaryKey=menu.object_id AND aliases.redirectID=0 WHERE (`visible`=1) AND (`position`=1) ORDER BY `menu`.`sort_order`

22:54:54.7040.1 msSELECT2
SELECT `menu`.`id`, `menu`.`parent_id`, `menu`.`object`, `menu`.`object_id`, `menu`.`image` AS `img`, `menu_lang`.`title` AS `label`, `aliases`.`alias` AS `url` FROM `menu` `menu` LEFT JOIN `menu_lang` `menu_lang` ON menu_lang.owner_id=menu.id AND menu_lang.language='ru' LEFT JOIN `aliases` ON aliases.model=menu.object AND aliases.primaryKey=menu.object_id AND aliases.redirectID=0 WHERE (`visible`=1) AND (`position`=1) ORDER BY `menu`.`sort_order`

22:54:54.7040.1 msSELECT1
SELECT `id` FROM `page` WHERE `catalogue`=1

22:54:54.7040.1 msSELECT1
SELECT `mgt`.`title` AS `groupName`, `mct`.`title` AS `text`, `a`.`alias` AS `url`, `mg`.`position_relative_catalog` AS `position`, `mc`.`position_relative_catalog` AS `position_category`, `mc`.`sorting_by_category` AS `sort_order`, `mc`.`sort_order` AS `sort_order_with_group`, `mg`.`sort_order` AS `sort_order_group`, `mc`.`image_in_menu` AS `image`, `mc`.`construct_id` AS `construct_id` FROM `shop_multi_category` `mc` LEFT JOIN `shop_multi_category_lang` `mct` ON mc.id=mct.owner_id AND mct.language='ru' LEFT JOIN `shop_multi_category_group` `mg` ON mc.group_id=mg.id LEFT JOIN `shop_multi_category_group_lang` `mgt` ON mg.id=mgt.owner_id AND mgt.language='ru' LEFT JOIN `aliases` `a` ON mc.id=a.primaryKey AND a.model='common\\models\\withdrawal\\MultiCategory' AND a.redirectID=0 WHERE (`mc`.`show_in_menu`=1) AND (`mc`.`visible`=1) GROUP BY `mc`.`id` ORDER BY `mg`.`sort_order`, `sort_order_with_group`

22:54:54.7040.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='27'

22:54:54.7040.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=27)

22:54:54.7050.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=27)

22:54:54.7050.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='29'

22:54:54.7050.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=29)

22:54:54.7050.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=29)

22:54:54.7050.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='13'

22:54:54.7060.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=13)

22:54:54.7060.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=13)

22:54:54.7060.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='14'

22:54:54.7060.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=14)

22:54:54.7060.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=14)

22:54:54.7070.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='4'

22:54:54.7070.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=4)

22:54:54.7070.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=4)

22:54:54.7070.1 msSELECT2
SELECT * FROM `shop_construct_product` WHERE `id`='10'

22:54:54.7080.1 msSELECT2
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=10)

22:54:54.7080.1 msSELECT2
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=10)

22:54:54.7080.1 msSELECT2
SELECT `main`.`id`, `lang`.`title`, `main`.`image`, `aliases`.`alias` AS `url`, `main`.`sort_order` FROM `category` `main` LEFT JOIN `category_lang` `lang` ON main.id=lang.owner_id LEFT JOIN `aliases` `aliases` ON aliases.primaryKey=main.id WHERE ((`object`='app\\modules\\shop\\models\\Product') AND (`visible`=1) AND (`language`='ru') AND (`aliases`.`redirectID`=0) AND (`aliases`.`model`='app\\modules\\main\\models\\Category')) AND (`parent_id`=0) ORDER BY `sort_order`

22:54:54.7090.1 msSELECT1
SELECT `mct`.`title` AS `label`, `a`.`alias` AS `url`, `mg`.`position_relative_catalog` AS `position`, `mc`.`position_relative_catalog` AS `position_category`, `mc`.`sorting_by_category` AS `sort_order`, `mc`.`sort_order` AS `sort_order_with_group`, `mg`.`sort_order` AS `sort_order_group`, `mc`.`construct_id` AS `constructId`, `mc`.`image_in_menu` AS `image` FROM `shop_multi_category` `mc` LEFT JOIN `shop_multi_category_lang` `mct` ON mc.id=mct.owner_id AND mct.language='ru' LEFT JOIN `shop_multi_category_group` `mg` ON mc.group_id=mg.id LEFT JOIN `aliases` `a` ON mc.id=a.primaryKey AND a.model='common\\models\\withdrawal\\MultiCategory' AND a.redirectID=0 WHERE (`mc`.`show_in_menu`=1) AND (`mc`.`visible`=1) GROUP BY `mc`.`id` ORDER BY `mg`.`sort_order`, `sort_order_with_group`

22:54:54.7090.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='27'

22:54:54.7100.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=27)

22:54:54.7100.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=27)

22:54:54.7100.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='29'

22:54:54.7100.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=29)

22:54:54.7110.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=29)

22:54:54.7110.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='13'

22:54:54.7110.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=13)

22:54:54.7110.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=13)

22:54:54.7110.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='14'

22:54:54.7120.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=14)

22:54:54.7120.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=14)

22:54:54.7120.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='4'

22:54:54.7120.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=4)

22:54:54.7120.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=4)

22:54:54.7120.1 msSELECT2
SELECT * FROM `shop_construct_product` WHERE `id`='10'

22:54:54.7130.1 msSELECT2
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=10)

22:54:54.7130.1 msSELECT2
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=10)

22:54:54.7130.1 msSELECT1
SELECT `main`.`id`, `lang`.`title`, `lang`.`mark`, `main`.`showcase_image` AS `image`, `main`.`alias`, `main`.`image_in_menu` AS `menuImage`, `aliases`.`alias` AS `url` FROM `shop_showcases` `main` LEFT JOIN `shop_showcases_lang` `lang` ON main.id=lang.owner_id LEFT JOIN `aliases` `aliases` ON aliases.primaryKey=main.id WHERE (`language`='ru') AND (`visible`=1) AND (`show_in_menu`=1) AND (`aliases`.`redirectID`=0) AND (`aliases`.`model`='app\\modules\\shop\\models\\Showcase') ORDER BY `main`.`sort_order`

22:54:54.7140.1 msSELECT1
SELECT * FROM `subscribe` `subscribe` LEFT JOIN `subscribe_lang` `subscribelang` ON subscribe.id=subscribelang.owner_id WHERE (`subscribelang`.`language`='ru') AND (`subscribe`.`visible`=1) AND (`subscribe`.`usage`=1) AND (`subscribe`.`type`=1)

22:54:54.7140.1 msSELECT2
SELECT `main`.`id`, `lang`.`title`, `main`.`image`, `aliases`.`alias` AS `url`, `main`.`sort_order` FROM `category` `main` LEFT JOIN `category_lang` `lang` ON main.id=lang.owner_id LEFT JOIN `aliases` `aliases` ON aliases.primaryKey=main.id WHERE ((`object`='app\\modules\\shop\\models\\Product') AND (`visible`=1) AND (`language`='ru') AND (`aliases`.`redirectID`=0) AND (`aliases`.`model`='app\\modules\\main\\models\\Category')) AND (`parent_id`=0) ORDER BY `sort_order`

22:54:54.7150.1 msSELECT1
SELECT `main`.`id`, `lang`.`mark`, `main`.`showcase_image`, `main`.`alias`, `aliases`.`alias` AS `url`, `main`.`construct_id` FROM `shop_showcases` `main` LEFT JOIN `shop_showcases_lang` `lang` ON main.id=lang.owner_id LEFT JOIN `aliases` `aliases` ON aliases.primaryKey=main.id WHERE (`language`='ru') AND (`visible`=1) AND (`show_on_main`=1) AND (`aliases`.`redirectID`=0) AND (`aliases`.`model`='app\\modules\\shop\\models\\Showcase') AND (`show_in_filter`=1) ORDER BY `main`.`sort_order`

22:54:54.7150.6 msSHOW1
SHOW FULL COLUMNS FROM `page`
22:54:54.7160.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'page' AND `kcu`.`TABLE_NAME` = 'page'

22:54:54.7160.1 msSELECT1
SELECT * FROM `page` WHERE `catalogue`=1

22:54:54.7160.4 msSHOW1
SHOW FULL COLUMNS FROM `page_lang`
22:54:54.7170.3 msSELECT1
SELECT `kcu`.`CONSTRAINT_NAME` AS `constraint_name`, `kcu`.`COLUMN_NAME` AS `column_name`, `kcu`.`REFERENCED_TABLE_NAME` AS `referenced_table_name`, `kcu`.`REFERENCED_COLUMN_NAME` AS `referenced_column_name` FROM `information_schema`.`REFERENTIAL_CONSTRAINTS` AS `rc` JOIN `information_schema`.`KEY_COLUMN_USAGE` AS `kcu` ON ( `kcu`.`CONSTRAINT_CATALOG` = `rc`.`CONSTRAINT_CATALOG` OR (`kcu`.`CONSTRAINT_CATALOG` IS NULL AND `rc`.`CONSTRAINT_CATALOG` IS NULL) ) AND `kcu`.`CONSTRAINT_SCHEMA` = `rc`.`CONSTRAINT_SCHEMA` AND `kcu`.`CONSTRAINT_NAME` = `rc`.`CONSTRAINT_NAME` WHERE `rc`.`CONSTRAINT_SCHEMA` = database() AND `kcu`.`TABLE_SCHEMA` = database() AND `rc`.`TABLE_NAME` = 'page_lang' AND `kcu`.`TABLE_NAME` = 'page_lang'

22:54:54.7170.1 msSELECT1
SELECT * FROM `page_lang` WHERE (`language`='ru') AND (`owner_id`=3)

22:54:54.7180.1 msSELECT2
SELECT * FROM `social` WHERE (`visible`=1) AND (`type` IN (1, 2, 5, 6, 7, 8))

22:54:54.7180.1 msSELECT1
SELECT `ibt`.`content`, `ib`.`show_on_mobile`, `ib`.`show_on_desktop` FROM `info_blocks` `ib` LEFT JOIN `info_blocks_lang` `ibt` ON ib.id=ibt.owner_id AND ibt.language='ru' WHERE (`ib`.`location`='topSite') AND (`ib`.`visible`=1)

22:54:54.7190.1 msSELECT1
SELECT * FROM `shop_currency` ORDER BY `sort_order`

22:54:54.7190.1 msSELECT5
SELECT * FROM `shop_currency` WHERE `main_in_shop`=1

22:54:54.7200.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.7200.1 msSELECT4
SELECT * FROM `shop_currency` WHERE `main`=1

22:54:54.7200.1 msSELECT8
SELECT * FROM `shop_currency_lang` WHERE `owner_id`=1

22:54:54.7210.1 msSELECT2
SELECT SUM(quantity) FROM `shop_document_content` WHERE `document_id` IS NULL

22:54:54.7220.1 msSELECT1
SELECT `t`.`image`, `tlang`.`title` FROM `shop_contact_information` `t` LEFT JOIN `shop_contact_information_lang` `tlang` ON t.id=tlang.owner_id WHERE (`tlang`.`language`='ru') AND (`t`.`visible`=1) ORDER BY `t`.`created_at` DESC

22:54:54.7220.1 msSELECT1
SELECT COUNT(*), MAX(`updated_at`) FROM `shop_contact_information`

22:54:54.7220.1 msSELECT2
SELECT `menu`.`id`, `menu`.`parent_id`, `menu`.`object`, `menu`.`object_id`, `menu`.`image` AS `img`, `menu_lang`.`title` AS `label`, `aliases`.`alias` AS `url` FROM `menu` `menu` LEFT JOIN `menu_lang` `menu_lang` ON menu_lang.owner_id=menu.id AND menu_lang.language='ru' LEFT JOIN `aliases` ON aliases.model=menu.object AND aliases.primaryKey=menu.object_id AND aliases.redirectID=0 WHERE ((`visible`=1) AND (`position`=2)) AND (`menu`.`parent_id`=0) ORDER BY `menu`.`sort_order`

22:54:54.7220.1 msSELECT2
SELECT `menu`.`id`, `menu`.`parent_id`, `menu`.`object`, `menu`.`object_id`, `menu`.`image` AS `img`, `menu_lang`.`title` AS `label`, `aliases`.`alias` AS `url` FROM `menu` `menu` LEFT JOIN `menu_lang` `menu_lang` ON menu_lang.owner_id=menu.id AND menu_lang.language='ru' LEFT JOIN `aliases` ON aliases.model=menu.object AND aliases.primaryKey=menu.object_id AND aliases.redirectID=0 WHERE ((`visible`=1) AND (`position`=2)) AND (`menu`.`parent_id`=0) ORDER BY `menu`.`sort_order`

22:54:54.7230.1 msSELECT1
SELECT `mgt`.`title` AS `groupName`, `mct`.`title` AS `text`, `a`.`alias` AS `url`, `mg`.`position_relative_catalog` AS `position`, `mc`.`position_relative_catalog` AS `position_category`, `mc`.`sorting_by_category` AS `sort_order`, `mc`.`sort_order` AS `sort_order_with_group`, `mg`.`sort_order` AS `sort_order_group`, `mc`.`image_in_menu` AS `image`, `mc`.`construct_id` AS `construct_id` FROM `shop_multi_category` `mc` LEFT JOIN `shop_multi_category_lang` `mct` ON mc.id=mct.owner_id AND mct.language='ru' LEFT JOIN `shop_multi_category_group` `mg` ON mc.group_id=mg.id LEFT JOIN `shop_multi_category_group_lang` `mgt` ON mg.id=mgt.owner_id AND mgt.language='ru' LEFT JOIN `aliases` `a` ON mc.id=a.primaryKey AND a.model='common\\models\\withdrawal\\MultiCategory' AND a.redirectID=0 WHERE (`mc`.`show_on_main`=1) AND (`mc`.`visible`=1) GROUP BY `mc`.`id` ORDER BY `mg`.`sort_order`, `sort_order_with_group`

22:54:54.7230.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='27'

22:54:54.7230.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=27)

22:54:54.7230.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=27)

22:54:54.7230.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='29'

22:54:54.7240.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=29)

22:54:54.7240.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=29)

22:54:54.7240.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='13'

22:54:54.7240.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=13)

22:54:54.7240.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=13)

22:54:54.7240.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='14'

22:54:54.7250.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=14)

22:54:54.7250.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=14)

22:54:54.7250.1 msSELECT3
SELECT * FROM `shop_construct_product` WHERE `id`='4'

22:54:54.7250.1 msSELECT3
SELECT * FROM `shop_construct_product_lang` WHERE (`language`='ru') AND (`owner_id`=4)

22:54:54.7250.1 msSELECT3
SELECT EXISTS(SELECT * FROM `shop_construct_user_type` WHERE `construct_id`=4)

22:54:54.7260.3 msSELECT1
SELECT `main`.`id`, `main`.`image`, `lang`.`title`, `lang`.`text`, `aliases`.`alias` AS `url` FROM `category` `main` LEFT JOIN `category_lang` `lang` ON main.id=lang.owner_id LEFT JOIN `aliases` `aliases` ON aliases.primaryKey=main.id WHERE ((`main`.`object`='app\\modules\\shop\\models\\Product') AND (`main`.`visible`=1) AND (`lang`.`language`='ru') AND (`aliases`.`redirectID`=0) AND (`aliases`.`model`='app\\modules\\main\\models\\Category')) AND (`main`.`parent_id`=0) ORDER BY `main`.`sort_order`

22:54:54.7260.1 msSELECT2
SELECT * FROM `social` WHERE (`visible`=1) AND (`type` IN (1, 2, 5, 6, 7, 8))