SELECT 
  cscart_bm_snapping.grid_id as grid_id, 
  cscart_bm_snapping.block_id as block_id, 
  IFNULL(
    dynamic_object_content.content, 
    default_content.content
  ) as content, 
  IFNULL(
    dynamic_object_content.object_id, 
    default_content.object_id
  ) AS object_id, 
  IFNULL(
    dynamic_object_content.object_type, 
    default_content.object_type
  ) AS object_type, 
  cscart_bm_block_statuses.object_ids as object_ids, 
  cscart_bm_snapping.*, 
  cscart_bm_blocks.*, 
  cscart_bm_blocks_descriptions.* 
FROM 
  cscart_bm_snapping 
  LEFT JOIN cscart_bm_blocks ON cscart_bm_blocks.block_id = cscart_bm_snapping.block_id 
  LEFT JOIN cscart_bm_block_statuses ON cscart_bm_snapping.snapping_id = cscart_bm_block_statuses.snapping_id 
  AND cscart_bm_block_statuses.object_type LIKE 'categories' 
  LEFT JOIN cscart_bm_blocks_descriptions ON cscart_bm_blocks.block_id = cscart_bm_blocks_descriptions.block_id 
  LEFT JOIN cscart_bm_blocks_content AS default_content ON cscart_bm_blocks.block_id = default_content.block_id 
  AND cscart_bm_blocks_descriptions.lang_code = default_content.lang_code 
  AND default_content.snapping_id = 0 
  AND default_content.object_id = 0 
  AND default_content.object_type like '' 
  LEFT JOIN cscart_bm_blocks_content AS dynamic_object_content ON cscart_bm_blocks.block_id = dynamic_object_content.block_id 
  AND cscart_bm_blocks_descriptions.lang_code = dynamic_object_content.lang_code 
  AND dynamic_object_content.object_id = 6 
  AND dynamic_object_content.object_type like 'categories' 
WHERE 
  cscart_bm_snapping.grid_id IN (
    87, 88, 177, 89, 90, 92, 301, 303, 302, 
    304, 305, 298, 299, 300, 321, 319, 323, 
    325, 320, 326, 322, 324, 317, 318
  ) 
  AND cscart_bm_blocks_descriptions.lang_code = 'en' 
  AND cscart_bm_blocks.company_id = 1 
ORDER BY 
  cscart_bm_snapping.order, 
  cscart_bm_snapping.block_id

Query time 0.00099

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_bm_snapping range grid_id grid_id 4 43 Using index condition; Using filesort
1 SIMPLE cscart_bm_block_statuses ref snapping_id snapping_id 4 toolboxdigitalshop_dev.cscart_bm_snapping.snapping_id 1 Using where
1 SIMPLE cscart_bm_blocks eq_ref PRIMARY PRIMARY 4 toolboxdigitalshop_dev.cscart_bm_snapping.block_id 1 Using where
1 SIMPLE cscart_bm_blocks_descriptions eq_ref PRIMARY PRIMARY 10 toolboxdigitalshop_dev.cscart_bm_snapping.block_id,const 1 Using where
1 SIMPLE default_content ref PRIMARY PRIMARY 18 toolboxdigitalshop_dev.cscart_bm_snapping.block_id,const,toolboxdigitalshop_dev.cscart_bm_blocks_descriptions.lang_code,const 1 Using where
1 SIMPLE dynamic_object_content ref PRIMARY PRIMARY 4 toolboxdigitalshop_dev.cscart_bm_snapping.block_id 1 Using where

Result

grid_id block_id content object_id object_type object_ids snapping_id wrapper user_class order status type properties company_id fpc_exclude_cache storefront_id lang_code name
303 16 0 543 0 A template a:1:{s:8:"template";s:32:"blocks/static_templates/logo.tpl";} 1 N 1 en Logo
89 16 0 98 top-logo 0 A template a:1:{s:8:"template";s:32:"blocks/static_templates/logo.tpl";} 1 N 1 en Logo
304 24 0 544 0 A template a:1:{s:8:"template";s:37:"blocks/static_templates/copyright.tpl";} 1 N 1 en Copyright
324 70 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:2:"88";s:6:"offset";s:1:"0";s:5:"limit";s:2:"30";}} 0 4 206 blocks/wrappers/mainbox_general.tpl 0 D products a:6:{s:8:"template";s:43:"blocks/products/products_scroller_slick.tpl";s:10:"show_price";s:1:"N";s:13:"item_quantity";s:1:"5";s:15:"thumbnail_width";s:3:"422";s:5:"style";s:5:"multi";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Featured Hard House
92 84 a:1:{s:4:"menu";s:1:"3";} 0 234 top-menu 0 A menu a:3:{s:8:"template";s:35:"blocks/menu/dropdown_horizontal.tpl";s:30:"dropdown_second_level_elements";s:2:"12";s:29:"dropdown_third_level_elements";s:1:"6";} 1 N 1 en Main Navigation
302 87 a:1:{s:7:"content";s:126:"<div id="banner" style="width:728px; margin:0 auto;"> <script src="/banner_proxy.php?count=1" data-no-defer></script> </div>";} 0 539 0 D html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en Advert Banner
88 98 0 270 0 D countries a:2:{s:8:"template";s:53:"addons/restricted_countries/blocks/country_picker.tpl";s:4:"text";s:0:"";} 1 N 1 en Countries
305 101 a:1:{s:7:"content";s:418:"<a href="https://twitter.com/TBDigitalShop" target="_blank"><i class="fa fa-twitter"></i></a> <a href="https://www.facebook.com/ToolboxDigital" target="_blank"><i class="fa fa-facebook-official"></i></a> <a href="https://www.youtube.com/user/ToolboxDigital" target="_blank"><i class="fa fa-youtube-play"></i></a> <a href="https://soundcloud.com/toolboxdigital" target="_blank"><i class="fa fa-soundcloud"></i></a> ";} 0 545 tb-footer-social-links 0 A smarty_block a:1:{s:8:"template";s:23:"blocks/smarty_block.tpl";} 1 N 1 en TBDS Social Links
90 122 a:1:{s:7:"content";s:87:"<a href="{"toolbox.view"|fn_url}" title="My Toolbox" class="tb-my-toolbox-btn">MYTB</a>";} 0 538 tb-my-toolbox-btn-wrapper 0 A smarty_block a:1:{s:8:"template";s:23:"blocks/smarty_block.tpl";} 1 N 1 en My Toolbox Button
301 123 a:1:{s:4:"menu";s:1:"6";} 0 540 blocks/wrappers/footer_general.tpl tb-footer-company-menu 0 A menu a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"N";} 1 N 1 en Company
299 125 a:1:{s:4:"menu";s:1:"5";} 0 542 0 A menu a:1:{s:8:"template";s:27:"blocks/menu/inline_menu.tpl";} 1 N 1 en Footer Navigation
325 132 a:1:{s:5:"items";a:2:{s:7:"filling";s:8:"manually";s:8:"item_ids";s:160:"125699,125659,125138,125492,124982,124994,125476,124858,125117,124868,124988,125374,125425,125489,125496,124573,125069,125046,125070,125164,124939,124918,124299";}} 0 565 0 D products a:11:{s:8:"template";s:37:"blocks/products/products_scroller.tpl";s:10:"show_price";s:1:"Y";s:17:"enable_quick_view";s:1:"N";s:24:"not_scroll_automatically";s:1:"N";s:15:"scroll_per_page";s:1:"N";s:5:"speed";s:3:"400";s:11:"pause_delay";s:1:"3";s:13:"item_quantity";s:1:"1";s:15:"thumbnail_width";s:3:"422";s:18:"outside_navigation";s:1:"N";s:23:"hide_add_to_cart_button";s:1:"N";} 1 Y 1 en Featured Products
319 140 a:1:{s:7:"content";s:154:"<a href="#singles" class="tb-visibility-toggle" data-type="top10">SINGLES</a> <a href="#albums" class="tb-visibility-toggle" data-type="top10">ALBUMS</a>";} 0 77,35,36,37,38,39,42,20,74,75,13,17,18,19,23,26,60,21,61,70,62,43,50,78 562 tb-top-10-header-tabs 0 A html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en Genre <span>Top10</span>
319 141 a:1:{s:5:"items";a:5:{s:7:"filling";s:10:"topsellers";s:3:"cid";s:0:"";s:12:"product_type";s:1:"S";s:14:"period_in_days";s:1:"7";s:5:"limit";s:2:"10";}} 0 77,13,17,18,19,23,26,62,50 563 blocks/wrappers/sidebox_important_player_buttons.tpl tb-visible-top10 tb-visible-singles 0 A products a:4:{s:8:"template";s:28:"blocks/products/products.tpl";s:11:"item_number";s:1:"Y";s:12:"hide_options";s:1:"Y";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Genre <span>Top10</span>
319 142 a:1:{s:5:"items";a:5:{s:7:"filling";s:10:"topsellers";s:3:"cid";s:0:"";s:12:"product_type";s:1:"C";s:14:"period_in_days";s:1:"7";s:5:"limit";s:2:"10";}} 0 35,36,37,38,39,42,20,74,75,60,21,61,70,62,43,50,78 564 blocks/wrappers/sidebox_important_player_buttons.tpl tb-visible-top10 tb-visible-albums 0 A products a:4:{s:8:"template";s:28:"blocks/products/products.tpl";s:11:"item_number";s:1:"Y";s:12:"hide_options";s:1:"Y";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Genre <span>Top10</span>
326 143 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:0:"";s:6:"offset";s:1:"5";s:5:"limit";s:1:"5";}} 0 566 tb-featured-product-small 0 D products a:11:{s:8:"template";s:37:"blocks/products/products_scroller.tpl";s:10:"show_price";s:1:"Y";s:17:"enable_quick_view";s:1:"N";s:24:"not_scroll_automatically";s:1:"N";s:15:"scroll_per_page";s:1:"N";s:5:"speed";s:3:"400";s:11:"pause_delay";s:1:"3";s:13:"item_quantity";s:1:"2";s:15:"thumbnail_width";s:3:"422";s:18:"outside_navigation";s:1:"Y";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Category Small Product Scroller
326 144 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:0:"";s:6:"offset";s:2:"10";s:5:"limit";s:1:"5";}} 0 567 tb-featured-product-small 0 D products a:11:{s:8:"template";s:37:"blocks/products/products_scroller.tpl";s:10:"show_price";s:1:"Y";s:17:"enable_quick_view";s:1:"N";s:24:"not_scroll_automatically";s:1:"N";s:15:"scroll_per_page";s:1:"N";s:5:"speed";s:3:"400";s:11:"pause_delay";s:1:"3";s:13:"item_quantity";s:1:"2";s:15:"thumbnail_width";s:2:"80";s:18:"outside_navigation";s:1:"N";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Category Small Product Scroller 2
320 157 a:1:{s:7:"content";s:1110:"<!-- Begin MailChimp Signup Form --> <link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css"> <div id="mc_embed_signup"> <form action="https://toolboxdigitalshop.us18.list-manage.com/subscribe/post?u=648c2232e947f4588e3c9dd7e&amp;id=9b6d4d9d09" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> <div id="mc_embed_signup_scroll"> <label for="mce-EMAIL">Subscribe to our mailing list</label> <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups--> <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_648c2232e947f4588e3c9dd7e_9b6d4d9d09" tabindex="-1" value=""></div> <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div> </div> </form> </div> <!--End mc_embed_signup-->";} 0 600 0 D html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en Mailchimp Horizontal Signup Form
321 175 a:1:{s:7:"content";s:364:"<div id="banner" style="max-width:728px; margin:0 auto; padding-bottom:40px;"> <a href="https://moreonthedoor.com/events/20-years-of-vicious-circle-toolbox-and-sin-ergy/" target="_blank"><img src="https://www.toolboxdigitalshop.com/design/themes/toolbox/media/images/20YEARS_banner.gif" width="728" height="90" title="Resurrection" alt="Resurrection"></a> </div>";} 0 639 0 D html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en Ad Takeover Banner
321 19 0 35,36,37,38,39,40,42,77,80 118 blocks/wrappers/mainbox_general.tpl tb-wrapper-visible tb-wrapper-visible-releases 1 A main 1 N 1 en Main Content
90 38 0 100 top-cart-content 1 A cart_content a:5:{s:8:"template";s:23:"blocks/cart_content.tpl";s:22:"display_bottom_buttons";s:1:"Y";s:20:"display_delete_icons";s:1:"Y";s:19:"products_links_type";s:5:"thumb";s:20:"generate_block_title";s:1:"Y";} 1 Y 1 en Cart content
324 71 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:2:"66";s:6:"offset";s:1:"0";s:5:"limit";s:2:"30";}} 0 1 205 blocks/wrappers/mainbox_general.tpl 1 D products a:6:{s:8:"template";s:43:"blocks/products/products_scroller_slick.tpl";s:10:"show_price";s:1:"N";s:13:"item_quantity";s:1:"5";s:15:"thumbnail_width";s:3:"422";s:5:"style";s:5:"multi";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Featured Hard Dance
301 124 a:1:{s:4:"menu";s:1:"7";} 0 541 blocks/wrappers/footer_general.tpl tb-footer-music-menu 1 A menu a:2:{s:8:"template";s:26:"blocks/menu/text_links.tpl";s:18:"show_items_in_line";s:1:"N";} 1 N 1 en Music
299 170 a:1:{s:7:"content";s:413:"<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Toolbox Digital - Banner --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-9922832759645585" data-ad-slot="4518495638" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>";} 0 619 1 D html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en AdSense - Banner
320 172 a:1:{s:7:"content";s:393:"<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-9922832759645585" data-ad-slot="6817355918"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>";} 0 632 1 A html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en AdSense - Styled
90 35 a:1:{s:4:"text";s:0:"";} 0 95 top-currencies 2 A currencies a:3:{s:8:"template";s:21:"blocks/currencies.tpl";s:6:"format";s:6:"symbol";s:14:"dropdown_limit";s:1:"3";} 1 N 1 en Currencies
324 72 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:2:"65";s:6:"offset";s:1:"0";s:5:"limit";s:2:"30";}} 0 3 207 blocks/wrappers/mainbox_general.tpl 2 D products a:6:{s:8:"template";s:43:"blocks/products/products_scroller_slick.tpl";s:10:"show_price";s:1:"N";s:13:"item_quantity";s:1:"5";s:15:"thumbnail_width";s:3:"422";s:5:"style";s:5:"multi";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Featured Hard Trance
88 87 a:1:{s:7:"content";s:126:"<div id="banner" style="width:728px; margin:0 auto;"> <script src="/banner_proxy.php?count=1" data-no-defer></script> </div>";} 0 258 banners 2 D html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en Advert Banner
177 99 a:1:{s:7:"content";s:807:"<div class="applinks-container"><br><br><img src="images/andriod-250h.png" class="phoneimg"> <h2>Toolbox Digital strive to give you the best hard dance music out there. </h2> <h2>Whether it's hard dance, hard house, hard trance, hardcore or hardstyle we stock it and have the best exclusive releases available as 320kbps MP3 or 44,100 Hz WAV.</h2> <p>Why not download one of our mobile apps...</p> <div style="clear:both"> <a href="https://itunes.apple.com/gb/app/toolbox-digital-shop/id844251164"><img src="images/ios.png" style="width:355px; height:100px;" alt="Download from iTunes" ></a> <a href="https://play.google.com/store/apps/details?id=com.therandomagency.toolboxmobile"><img src="images/google.png" style="width:355px; height:100px;" alt="Download from Google Play" ></a></div> <br><br></div>";} 0 272 applinks 2 D html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en App Links
302 172 a:1:{s:7:"content";s:393:"<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-9922832759645585" data-ad-slot="6817355918"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>";} 0 624 2 A html_block a:1:{s:8:"template";s:21:"blocks/html_block.tpl";} 1 N 1 en AdSense - Styled
90 28 0 96 blocks/wrappers/onclick_dropdown.tpl top-my-account 3 A my_account a:1:{s:8:"template";s:21:"blocks/my_account.tpl";} 1 Y 1 en My Account
324 88 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:2:"87";s:6:"offset";s:1:"0";s:5:"limit";s:2:"30";}} 0 22 260 blocks/wrappers/mainbox_general.tpl 3 D products a:6:{s:8:"template";s:43:"blocks/products/products_scroller_slick.tpl";s:10:"show_price";s:1:"N";s:13:"item_quantity";s:1:"5";s:15:"thumbnail_width";s:3:"422";s:5:"style";s:5:"multi";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Featured Hardcore
87 101 a:1:{s:7:"content";s:418:"<a href="https://twitter.com/TBDigitalShop" target="_blank"><i class="fa fa-twitter"></i></a> <a href="https://www.facebook.com/ToolboxDigital" target="_blank"><i class="fa fa-facebook-official"></i></a> <a href="https://www.youtube.com/user/ToolboxDigital" target="_blank"><i class="fa fa-youtube-play"></i></a> <a href="https://soundcloud.com/toolboxdigital" target="_blank"><i class="fa fa-soundcloud"></i></a> ";} 0 277 tbds-social-links 3 D smarty_block a:1:{s:8:"template";s:23:"blocks/smarty_block.tpl";} 1 N 1 en TBDS Social Links
90 37 0 99 top-search 4 A template a:1:{s:8:"template";s:34:"blocks/static_templates/search.tpl";} 1 N 1 en Search
324 89 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:2:"63";s:6:"offset";s:1:"0";s:5:"limit";s:2:"30";}} 0 25 261 blocks/wrappers/mainbox_general.tpl 4 D products a:6:{s:8:"template";s:43:"blocks/products/products_scroller_slick.tpl";s:10:"show_price";s:1:"N";s:13:"item_quantity";s:1:"5";s:15:"thumbnail_width";s:3:"422";s:5:"style";s:5:"multi";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Featured Hardstyle
324 118 a:1:{s:5:"items";a:4:{s:7:"filling";s:8:"featured";s:3:"cid";s:2:"76";s:6:"offset";s:1:"0";s:5:"limit";s:2:"20";}} 0 13 516 blocks/wrappers/mainbox_general.tpl 5 D products a:6:{s:8:"template";s:43:"blocks/products/products_scroller_slick.tpl";s:10:"show_price";s:1:"N";s:13:"item_quantity";s:1:"5";s:15:"thumbnail_width";s:3:"422";s:5:"style";s:5:"multi";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Featured Compilations
324 154 a:1:{s:5:"items";a:5:{s:7:"filling";s:6:"newest";s:6:"period";s:2:"HC";s:9:"last_days";s:1:"7";s:5:"limit";s:3:"100";s:3:"cid";s:0:"";}} 0 80,6 592 6 D products a:4:{s:8:"template";s:41:"blocks/products/products_multicolumns.tpl";s:11:"item_number";s:1:"N";s:17:"number_of_columns";s:1:"5";s:23:"hide_add_to_cart_button";s:1:"N";} 1 N 1 en Last 7 Days - Products