SET SESSION sql_mode = '' |
- |
0.000031 |
false |
SELECT
seo_settings.*
FROM seo_settings
ORDER BY
id desc
LIMIT 0, 1 |
1 |
0.000563 |
false |
update seo_settings set individual_seo_settings = 'a:0:{}' |
- |
0.000147 |
false |
SELECT
(select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='image')) as image_calculated, (product_type_calculated_join.name) as product_type_calculated, (select group_concat(catalog_attributes.name ORDER BY 1 SEPARATOR ', ') from catalog_attributes, catalog_category_filters where
catalog_attributes.id=catalog_category_filters.attribute_id and
catalog_category_filters.category_id=catalog_categories.id) as filters_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_categories.id) as colours_calculated, (select group_concat(db_files.id ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='photos')) as photos_calculated, catalog_categories.*
FROM catalog_categories
LEFT JOIN catalog_product_types as product_type_calculated_join ON product_type_calculated_join.id = catalog_categories.type_id
WHERE
(catalog_categories.id = '162')
LIMIT 0, 1 |
1 |
0.002209 |
false |
SELECT product_id, category_id FROM catalog_products_alt_categories WHERE category_id='162' ORDER BY product_id ASC |
17 |
0.000398 |
false |
SELECT
count(DISTINCT catalog_products.id)
FROM catalog_products
LEFT JOIN catalog_products_alt_categories ON catalog_products_alt_categories.product_id = catalog_products.id
LEFT JOIN catalog_categories as category_calculated_join ON category_calculated_join.id = catalog_products.category_id
LEFT JOIN catalog_product_types as type_calculated_join ON type_calculated_join.id = catalog_products.type_id
WHERE
(catalog_products.category_id = '162') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) OR (catalog_products_alt_categories.category_id = '162') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) |
1 |
0.005551 |
false |
SELECT
catalog_products_alt_categories.category_id as alt_category_id, (select min(price) from catalog_skus where product_id=catalog_products.id) as min_price, (select max(price) from catalog_skus where product_id=catalog_products.id) as max_price, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_products.id and (master_object_class='Catalog_Product' and field='photos')) as photos_calculated, (category_calculated_join.name) as category_calculated, (type_calculated_join.name) as type_calculated, (select group_concat(catalog_skus.name ORDER BY 1 SEPARATOR ', ') from catalog_skus where
catalog_skus.product_id = catalog_products.id) as skus_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_products.id) as colours_calculated, (select group_concat(catalog_categories.name ORDER BY 1 SEPARATOR ', ') from catalog_categories, catalog_products_alt_categories where
catalog_categories.id=catalog_products_alt_categories.category_id and
catalog_products_alt_categories.product_id=catalog_products.id) as alt_categories_calculated, catalog_products.*
FROM catalog_products
LEFT JOIN catalog_products_alt_categories ON catalog_products_alt_categories.product_id = catalog_products.id
LEFT JOIN catalog_categories as category_calculated_join ON category_calculated_join.id = catalog_products.category_id
LEFT JOIN catalog_product_types as type_calculated_join ON type_calculated_join.id = catalog_products.type_id
WHERE
(catalog_products.category_id = '162') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) OR (catalog_products_alt_categories.category_id = '162') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null)
GROUP BY
catalog_products.id
ORDER BY
CASE WHEN catalog_products.category_id = 162 THEN 0 ELSE 1 END, sort_order asc
LIMIT 0, 28 |
28 |
0.024077 |
false |
select * from catalog_attribute_values where product_id = '820' |
0 |
0.001129 |
false |
select * from catalog_attribute_values where product_id = '821' |
0 |
0.000234 |
false |
select * from catalog_attribute_values where product_id = '822' |
0 |
0.000151 |
false |
select * from catalog_attribute_values where product_id = '3098' |
0 |
0.000154 |
false |
select * from catalog_attribute_values where product_id = '827' |
0 |
0.000162 |
false |
select * from catalog_attribute_values where product_id = '828' |
0 |
0.000161 |
false |
select * from catalog_attribute_values where product_id = '829' |
0 |
0.000143 |
false |
SELECT id, name
FROM catalog_categories
WHERE hidden IS NULL AND parent_id = 145 ORDER BY sort_order ASC |
3 |
0.000235 |
false |
SELECT
(select min(price) from catalog_skus where product_id=catalog_products.id) as min_price, (select max(price) from catalog_skus where product_id=catalog_products.id) as max_price, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_products.id and (master_object_class='Catalog_Product' and field='photos')) as photos_calculated, (category_calculated_join.name) as category_calculated, (type_calculated_join.name) as type_calculated, (select group_concat(catalog_skus.name ORDER BY 1 SEPARATOR ', ') from catalog_skus where
catalog_skus.product_id = catalog_products.id) as skus_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_products.id) as colours_calculated, (select group_concat(catalog_categories.name ORDER BY 1 SEPARATOR ', ') from catalog_categories, catalog_products_alt_categories where
catalog_categories.id=catalog_products_alt_categories.category_id and
catalog_products_alt_categories.product_id=catalog_products.id) as alt_categories_calculated, catalog_products.*
FROM catalog_products
LEFT JOIN catalog_categories as category_calculated_join ON category_calculated_join.id = catalog_products.category_id
LEFT JOIN catalog_product_types as type_calculated_join ON type_calculated_join.id = catalog_products.type_id
WHERE
(catalog_products.sell_out = 1) AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) |
6 |
0.012850 |
false |
SELECT
catalog_categories.*
FROM catalog_categories
ORDER BY
sort_order |
208 |
0.001823 |
false |
SELECT
(select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='image')) as image_calculated, (product_type_calculated_join.name) as product_type_calculated, (select group_concat(catalog_attributes.name ORDER BY 1 SEPARATOR ', ') from catalog_attributes, catalog_category_filters where
catalog_attributes.id=catalog_category_filters.attribute_id and
catalog_category_filters.category_id=catalog_categories.id) as filters_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_categories.id) as colours_calculated, (select group_concat(db_files.id ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='photos')) as photos_calculated, catalog_categories.*
FROM catalog_categories
LEFT JOIN catalog_product_types as product_type_calculated_join ON product_type_calculated_join.id = catalog_categories.type_id
WHERE
(catalog_categories.id = '21')
LIMIT 0, 1 |
1 |
0.000719 |
false |
SELECT
(select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='image')) as image_calculated, (product_type_calculated_join.name) as product_type_calculated, (select group_concat(catalog_attributes.name ORDER BY 1 SEPARATOR ', ') from catalog_attributes, catalog_category_filters where
catalog_attributes.id=catalog_category_filters.attribute_id and
catalog_category_filters.category_id=catalog_categories.id) as filters_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_categories.id) as colours_calculated, (select group_concat(db_files.id ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='photos')) as photos_calculated, catalog_categories.*
FROM catalog_categories
LEFT JOIN catalog_product_types as product_type_calculated_join ON product_type_calculated_join.id = catalog_categories.type_id
WHERE
(catalog_categories.id = '145')
LIMIT 0, 1 |
1 |
0.000972 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '162') AND (db_files.master_object_class='Catalog_Category' and field='photos')
ORDER BY
sort_order |
7 |
0.000333 |
false |
SELECT
(colour_calculated_join.name) as colour_calculated, mebel_relations.*
FROM mebel_relations
LEFT JOIN mebel_colours as colour_calculated_join ON colour_calculated_join.id = mebel_relations.colour_id
WHERE
(mebel_relations.object_id = '162') |
0 |
0.000802 |
false |
SELECT
(select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='image')) as image_calculated, (product_type_calculated_join.name) as product_type_calculated, (select group_concat(catalog_attributes.name ORDER BY 1 SEPARATOR ', ') from catalog_attributes, catalog_category_filters where
catalog_attributes.id=catalog_category_filters.attribute_id and
catalog_category_filters.category_id=catalog_categories.id) as filters_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_categories.id) as colours_calculated, (select group_concat(db_files.id ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='photos')) as photos_calculated, catalog_categories.*
FROM catalog_categories
LEFT JOIN catalog_product_types as product_type_calculated_join ON product_type_calculated_join.id = catalog_categories.type_id
WHERE
(catalog_categories.id = '162')
LIMIT 0, 1 |
1 |
0.000865 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3084') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000375 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3083') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000376 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3085') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000274 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1898') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000268 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1899') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000227 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1900') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000272 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1854') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000241 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3082') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000314 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1855') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000343 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1856') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000296 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1857') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000295 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1858') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000279 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1859') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000340 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1860') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000292 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3086') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000261 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1861') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000242 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '1862') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
2 |
0.000323 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3087') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
2 |
0.000337 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3080') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000328 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3100') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000282 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3099') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000433 |
false |
SELECT
(select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='image')) as image_calculated, (product_type_calculated_join.name) as product_type_calculated, (select group_concat(catalog_attributes.name ORDER BY 1 SEPARATOR ', ') from catalog_attributes, catalog_category_filters where
catalog_attributes.id=catalog_category_filters.attribute_id and
catalog_category_filters.category_id=catalog_categories.id) as filters_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_categories.id) as colours_calculated, (select group_concat(db_files.id ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='photos')) as photos_calculated, catalog_categories.*
FROM catalog_categories
LEFT JOIN catalog_product_types as product_type_calculated_join ON product_type_calculated_join.id = catalog_categories.type_id
WHERE
(catalog_categories.id = '122')
LIMIT 0, 1 |
1 |
0.000915 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '820') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000282 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '821') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000358 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '822') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000310 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3098') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000287 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '827') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000260 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '828') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000367 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '829') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000245 |
false |
SELECT
admin_module_settings.*
FROM admin_module_settings
WHERE
(admin_module_settings.module_id='admin') AND (admin_module_settings.form_id='default')
LIMIT 0, 1 |
1 |
0.000421 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_wa')
LIMIT 0, 1 |
1 |
0.000463 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_address')
LIMIT 0, 1 |
1 |
0.000234 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_tel')
LIMIT 0, 1 |
1 |
0.000344 |
false |
SELECT
admin_menus.*
FROM admin_menus
WHERE
(admin_menus.code = 'main')
LIMIT 0, 1 |
1 |
0.000402 |
false |
SELECT
admin_menu_items.*
FROM admin_menu_items
WHERE
(admin_menu_items.menu_id = '1') AND (admin_menu_items.parent_id is null and (admin_menu_items.is_hidden is null or admin_menu_items.is_hidden=0) and (admin_menu_items.is_hidden_in_menu is null or admin_menu_items.is_hidden_in_menu=0))
ORDER BY
group_name, sort_order |
6 |
0.000768 |
false |
SELECT
admin_menu_items.*
FROM admin_menu_items
ORDER BY
sort_order |
24 |
0.000256 |
false |
SELECT
admin_menus.*
FROM admin_menus
WHERE
(admin_menus.id = '1')
LIMIT 0, 1 |
1 |
0.000141 |
false |
select count(*) from shop_carts where cart_id = '7500a363013f0b31203e0b822169066cb8764d4a7f67af11e1bb5c18775eb88b98f806d49ec9d703973da80ddb7bcd0277500a88a5a4e2d10121346190bfcd93' |
1 |
0.000368 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_tel_mobile')
LIMIT 0, 1 |
1 |
0.000255 |
false |
SELECT
shop_carts.*
FROM shop_carts
WHERE
(shop_carts.cart_id = '7500a363013f0b31203e0b822169066cb8764d4a7f67af11e1bb5c18775eb88b98f806d49ec9d703973da80ddb7bcd0277500a88a5a4e2d10121346190bfcd93')
LIMIT 0, 1 |
0 |
0.000201 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id is null and hidden is null
order by sort_order asc |
13 |
0.000265 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 1 and hidden is null
order by sort_order asc |
5 |
0.000231 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 21 and hidden is null
order by sort_order asc |
6 |
0.000153 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 4 and hidden is null
order by sort_order asc |
9 |
0.000205 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 22 and hidden is null
order by sort_order asc |
7 |
0.000181 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 16 and hidden is null
order by sort_order asc |
8 |
0.000149 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 8 and hidden is null
order by sort_order asc |
4 |
0.000150 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 135 and hidden is null
order by sort_order asc |
8 |
0.000159 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 232 and hidden is null
order by sort_order asc |
0 |
0.000148 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 14 and hidden is null
order by sort_order asc |
0 |
0.000172 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 63 and hidden is null
order by sort_order asc |
3 |
0.000137 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 65 and hidden is null
order by sort_order asc |
11 |
0.000233 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 62 and hidden is null
order by sort_order asc |
0 |
0.000223 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 203 and hidden is null
order by sort_order asc |
0 |
0.000202 |
false |
SELECT * FROM banners_categories WHERE code = 'sidebar_banners' |
1 |
0.000463 |
false |
SELECT max(id) as id
FROM banners
WHERE category_id = '2' AND enabled = 1
GROUP BY position |
1 |
0.000341 |
false |
SELECT
(DATEDIFF(CURRENT_DATE(), date_enabled)) as days_enabled, (category_calculated_join.name) as category_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='image')) as image_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='flash_file')) as flash_file_calculated, banners.*
FROM banners
LEFT JOIN banners_categories as category_calculated_join ON category_calculated_join.id = banners.category_id
WHERE
(banners.id IN ('12'))
ORDER BY
banners.sort_order DESC, banners.id |
1 |
0.000480 |
false |
SELECT
(DATEDIFF(CURRENT_DATE(), date_enabled)) as days_enabled, (category_calculated_join.name) as category_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='image')) as image_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='flash_file')) as flash_file_calculated, banners.*
FROM banners
LEFT JOIN banners_categories as category_calculated_join ON category_calculated_join.id = banners.category_id
WHERE
(banners.position='12') AND ((
exposure_limit_type is NULL or
exposure_limit_type = 0 or
(exposure_limit_type = 1 and period_start >= CURRENT_DATE() and period_end <= CURRENT_DATE()) or
(exposure_limit_type = 2 and hits_left > 0)
)) |
1 |
0.000790 |
false |
update banners set impression_number = impression_number+1 where id in ('12') |
- |
0.000167 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '12') AND (db_files.master_object_class='Banners_Banner' and field='image')
ORDER BY
id |
1 |
0.000225 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'footer_address')
LIMIT 0, 1 |
1 |
0.000225 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'footer_address')
LIMIT 0, 1 |
1 |
0.000277 |
false |