1 | SELECT `Marca`.`id`, `Marca`.`habilitada`, `Marca`.`nombre`, `Marca`.`slug`, `Marca`.`borrada`, `Marca`.`destacada`, `Marca`.`meta_title`, `Marca`.`meta_description`, `Marca`.`meta_keys`, `Marca`.`imagen`, `Marca`.`thumb`, `Marca`.`slide_id`, `Marca`.`pie_articulo`, `Marca`.`top_articulo`, `Marca`.`top_id`, `Marca`.`store`, `Marca`.`distribucion`, `Marca`.`plugin_code_head`, `Marca`.`plugin_code_begin_body`, `Marca`.`plugin_code_body`, `Marca`.`conversion_code`, `Marca`.`codigo`, `Marca`.`portal_off`, `Marca`.`orders`, `Marca`.`sold`, `Marca`.`sold_by_orders`, `Marca`.`billing`, `Marca`.`stats_last_update`, `Marca`.`stats_by_months`, `Marca`.`stats_brand_ids`, `Marca`.`stats_item_ids`, `Marca`.`hot_off`, `Marca`.`max_hot_off`, `Marca`.`count_portal_off`, `Marca`.`count_hot_off`, `Marca`.`hot`, `Marca`.`nueva`, `Marca`.`home`, `Marca`.`home_pos` FROM `nubix_zonacam`.`marcas` AS `Marca` WHERE `Marca`.`borrada` = 0 AND `Marca`.`slug` = 'sandisk' LIMIT 1 | | 1 | 1 | 1 |
2 | SELECT `Articulo`.`id`, `Articulo`.`published`, `Articulo`.`curva_id`, `Articulo`.`curva2_id`, `Articulo`.`associated_curva_id`, `Articulo`.`categoria_id`, `Articulo`.`marca_id`, `Articulo`.`habilitado`, `Articulo`.`destacado`, `Articulo`.`borrado`, `Articulo`.`oferta`, `Articulo`.`oferta_dist`, `Articulo`.`hot_off`, `Articulo`.`delay_off`, `Articulo`.`oferta_2u`, `Articulo`.`promo`, `Articulo`.`envio_gratis`, `Articulo`.`codigo`, `Articulo`.`sku`, `Articulo`.`slug`, `Articulo`.`nombre`, `Articulo`.`precio`, `Articulo`.`precio_real`, `Articulo`.`precio_dist`, `Articulo`.`precio_dist_real`, `Articulo`.`rango`, `Articulo`.`precio_min`, `Articulo`.`precio_max`, `Articulo`.`meta_title`, `Articulo`.`meta_description`, `Articulo`.`nuevo`, `Articulo`.`stock_id`, `Articulo`.`stock_id_dist`, `Articulo`.`pedido_minimo_dist`, `Articulo`.`stock`, `Articulo`.`stock_dist`, `Articulo`.`img1_list`, `Articulo`.`img2_list`, `Articulo`.`colores`, `Articulo`.`score`, `Articulo`.`valoraciones`, `Articulo`.`distribucion`, `Articulo`.`peso`, `Articulo`.`thumb1`, `Articulo`.`small_thumb1`, `Articulo`.`thumb2`, `Articulo`.`small_thumb2`, `Articulo`.`thumb3`, `Articulo`.`small_thumb3`, `Articulo`.`thumb4`, `Articulo`.`small_thumb4`, `Articulo`.`thumb5`, `Articulo`.`small_thumb5`, `Articulo`.`thumb6`, `Articulo`.`small_thumb6`, `Articulo`.`thumb7`, `Articulo`.`small_thumb7`, `Articulo`.`thumb8`, `Articulo`.`small_thumb8`, `Articulo`.`thumb9`, `Articulo`.`small_thumb9`, `Articulo`.`thumb10`, `Articulo`.`small_thumb10`, `Articulo`.`thumb11`, `Articulo`.`small_thumb11`, `Articulo`.`thumb12`, `Articulo`.`small_thumb12`, `Articulo`.`thumb13`, `Articulo`.`small_thumb13`, `Articulo`.`thumb14`, `Articulo`.`small_thumb14`, `Articulo`.`thumb15`, `Articulo`.`small_thumb15` FROM `nubix_zonacam`.`articulos` AS `Articulo` WHERE `Articulo`.`marca_id` = 8 AND `Articulo`.`habilitado` = 1 AND ((`Articulo`.`categoria_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_sec_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_ter_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_cuar_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_quin_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_sex_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22))) ORDER BY `Articulo`.`stock_id` ASC, `Articulo`.`oferta` DESC, `Articulo`.`destacado` DESC LIMIT 30 | | 3 | 3 | 2 |
3 | SELECT COUNT(DISTINCT Articulo.id) as count, COUNT(DISTINCT Articulo.categoria_id) as categ_count, `Marca`.`id`, `Marca`.`nombre`, `Marca`.`meta_title`, `Marca`.`slug`, `Marca`.`imagen` FROM `nubix_zonacam`.`articulos` AS `Articulo` LEFT JOIN `nubix_zonacam`.`marcas` AS `Marca` ON (`Articulo`.`marca_id` = `Marca`.`id`) WHERE `Articulo`.`habilitado` = 1 AND ((`Articulo`.`categoria_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_sec_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_ter_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_cuar_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_quin_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22)) OR (`Articulo`.`categoria_sex_id` IN (19, 24, 54, 52, 51, 21, 30, 36, 32, 27, 33, 47, 71, 34, 41, 25, 20, 22))) GROUP BY `Articulo`.`marca_id` ORDER BY `Marca`.`nombre` ASC | | 11 | 11 | 4 |