1 | 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`.`habilitado` = 1 AND ((`Articulo`.`categoria_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_sec_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_ter_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_cuar_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_quin_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_sex_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72))) ORDER BY `Articulo`.`stock_id` ASC, `Articulo`.`oferta` DESC, `Articulo`.`destacado` DESC LIMIT 30 | | 30 | 30 | 17 |
2 | SELECT COUNT(*) AS `count` FROM `nubix_zonacam`.`articulos` AS `Articulo` WHERE `Articulo`.`habilitado` = 1 AND ((`Articulo`.`categoria_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_sec_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_ter_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_cuar_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_quin_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_sex_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72))) | | 1 | 1 | 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 (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_sec_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_ter_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_cuar_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_quin_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72)) OR (`Articulo`.`categoria_sex_id` IN (37, 39, 38, 40, 48, 56, 57, 66, 67, 72))) GROUP BY `Articulo`.`marca_id` ORDER BY `Marca`.`nombre` ASC | | 20 | 20 | 5 |