QUERY: 1, čas: 0.022260 s, počet: 1
SQL: [5601] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND id_event_organizer IN (:ad47686e_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad47686e_arr_0
paramno=-1
name=[15] ":ad47686e_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 2, čas: 0.019319 s, počet: 1
SQL: [5601] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND id_event_organizer IN (:ad47d6ff_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad47d6ff_arr_0
paramno=-1
name=[15] ":ad47d6ff_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 3, čas: 0.009621 s, počet: 1
SQL: [5601] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND id_event_organizer IN (:ad471305_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad471305_arr_0
paramno=-1
name=[15] ":ad471305_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 4, čas: 0.006399 s, počet: 1
SQL: [5605] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND events_places_id_place IN (:ad46e220_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad46e220_arr_0
paramno=-1
name=[15] ":ad46e220_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 5, čas: 0.006131 s, počet: 1
SQL: [5601] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND id_event_organizer IN (:ad483a31_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad483a31_arr_0
paramno=-1
name=[15] ":ad483a31_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 6, čas: 0.004783 s, počet: 1
SQL: [5601] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND id_event_organizer IN (:ad48818f_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad48818f_arr_0
paramno=-1
name=[15] ":ad48818f_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 7, čas: 0.000598 s, počet: 1
SQL: [1704] SELECT `t_ph_imgs`.`id_image`, `t_ph_imgs`.`id_category`, `t_ph_imgs`.`image_label_cs` , `t_ph_imgs`.`image_link_cs` , `t_ph_imgs`.`image_order`, `t_ph_imgs`.`image_active`, `t_ph_imgs`.`image_file`, `t_ph_imgs`.`valid_from`, `t_ph_imgs`.`valid_to`, `t_ph_imgs`.`slogan_background`, `Model_Category_1`.`id_owner_user` AS `id_owner_user`, `Model_Category_1`.`label_cs` AS label_cs, `Model_Category_1`.`alt_cs` AS alt_cs, `Model_Category_1`.`urlkey_cs` AS urlkey_cs, `Model_Category_1`.`disable_cs` AS disable_cs, `Model_Category_1`.`module` AS `module`, `Model_Category_1`.`data_dir` AS `data_dir`, `Model_Category_1`.`individual_panels` AS `individual_panels`, `Model_Category_1`.`visibility` AS `visibility`, `Model_Category_1`.`ser_params` AS `ser_params`, `Model_Category_1`.`priority` AS `priority`, `Model_Category_1`.`default_right` AS `default_right`, `Model_Category_1`.`active` AS `active`, `Model_Category_1`.`keywords_cs` AS keywords_cs, `Model_Category_1`.`description_cs` AS description_cs, `Model_Category_1`.`changed` AS `changed`, `Model_Category_1`.`created` AS `created`, `Model_Category_1`.`feeds` AS `feeds`, `Model_Category_1`.`icon` AS `icon`, `Model_Category_1`.`background` AS `background`, `Model_Category_1`.`sitemap_changefreq` AS `sitemap_changefreq`, `Model_Category_1`.`sitemap_priority` AS `sitemap_priority` FROM `kzvalmez_dev`.`kz_hpslideshow_images` AS t_ph_imgs LEFT JOIN kz_categories AS Model_Category_1 ON (`Model_Category_1`.`id_category` = `t_ph_imgs`.`id_category`)
WHERE (`t_ph_imgs`.`image_active` = 1 AND `t_ph_imgs`.`valid_from` <= NOW() AND ( `t_ph_imgs`.`valid_to` IS NULL OR `t_ph_imgs`.`valid_to` >= NOW()) )
ORDER BY `t_ph_imgs`.`image_order` ASC
Params: 0
;
QUERY: 8, čas: 0.000357 s, počet: 1
SQL: [240] SELECT `t_ses`.`session_key`, `t_ses`.`value`, `t_ses`.`ip`, `t_ses`.`created`, `t_ses`.`updated`, `t_ses`.`id_user` FROM `kzvalmez_dev`.`kz_sessions` AS t_ses WHERE (`t_ses`.`session_key` = :key )
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 3
Key: Name: [4] :key
paramno=-1
name=[4] ":key"
is_param=1
param_type=2
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 9, čas: 0.000323 s, počet: 1
SQL: [1036] SELECT `t_art`.`id_article`, `t_art`.`id_user`, `t_art`.`is_user_last_edit`, `t_art`.`id_cat`, `t_art`.`id_photogallery`, `t_art`.`name_cs` , `t_art`.`urlkey_cs` , `t_art`.`text_cs` , `t_art`.`text_private_cs` , `t_art`.`text_clear_cs` , `t_art`.`keywords_cs` , `t_art`.`description_cs` , `t_art`.`annotation_cs` , `t_art`.`add_time`, `t_art`.`edit_time`, `t_art`.`concept`, `t_art`.`viewed`, `t_art`.`title_image`, `t_art`.`title_image_is_illustration`, `t_art`.`author`, `t_art`.`article_priority`, `t_art`.`article_priority_end_date`, `t_art`.`article_place`, `t_art`.`article_datadir`, `Model_Category_1`.`urlkey_cs` AS curlkey_cs, `Model_Category_1`.`id_category`, `Model_Category_1`.`label_cs` FROM `kzvalmez_dev`.`kz_articles` AS t_art LEFT JOIN kz_categories AS Model_Category_1 ON (`Model_Category_1`.`id_category` = `t_art`.`id_cat`)
WHERE (`t_art`.`id_cat` = :idc AND `t_art`.`id_article` NOT IN (:ad48a422_arr_0) AND `t_art`.`add_time` < NOW() )
ORDER BY `t_art`.`add_time` DESC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 4
Key: Name: [4] :idc
paramno=-1
name=[4] ":idc"
is_param=1
param_type=1
Key: Name: [15] :ad48a422_arr_0
paramno=-1
name=[15] ":ad48a422_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 10, čas: 0.000299 s, počet: 1
SQL: [1036] SELECT `t_art`.`id_article`, `t_art`.`id_user`, `t_art`.`is_user_last_edit`, `t_art`.`id_cat`, `t_art`.`id_photogallery`, `t_art`.`name_cs` , `t_art`.`urlkey_cs` , `t_art`.`text_cs` , `t_art`.`text_private_cs` , `t_art`.`text_clear_cs` , `t_art`.`keywords_cs` , `t_art`.`description_cs` , `t_art`.`annotation_cs` , `t_art`.`add_time`, `t_art`.`edit_time`, `t_art`.`concept`, `t_art`.`viewed`, `t_art`.`title_image`, `t_art`.`title_image_is_illustration`, `t_art`.`author`, `t_art`.`article_priority`, `t_art`.`article_priority_end_date`, `t_art`.`article_place`, `t_art`.`article_datadir`, `Model_Category_1`.`urlkey_cs` AS curlkey_cs, `Model_Category_1`.`id_category`, `Model_Category_1`.`label_cs` FROM `kzvalmez_dev`.`kz_articles` AS t_art LEFT JOIN kz_categories AS Model_Category_1 ON (`Model_Category_1`.`id_category` = `t_art`.`id_cat`)
WHERE (`t_art`.`id_cat` = :idc AND `t_art`.`id_article` NOT IN (:ad492b97_arr_0) AND `t_art`.`add_time` < NOW() )
ORDER BY `t_art`.`add_time` DESC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 4
Key: Name: [4] :idc
paramno=-1
name=[4] ":idc"
is_param=1
param_type=1
Key: Name: [15] :ad492b97_arr_0
paramno=-1
name=[15] ":ad492b97_arr_0"
is_param=1
param_type=2
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 11, čas: 0.000283 s, počet: 1
SQL: [1036] SELECT `t_art`.`id_article`, `t_art`.`id_user`, `t_art`.`is_user_last_edit`, `t_art`.`id_cat`, `t_art`.`id_photogallery`, `t_art`.`name_cs` , `t_art`.`urlkey_cs` , `t_art`.`text_cs` , `t_art`.`text_private_cs` , `t_art`.`text_clear_cs` , `t_art`.`keywords_cs` , `t_art`.`description_cs` , `t_art`.`annotation_cs` , `t_art`.`add_time`, `t_art`.`edit_time`, `t_art`.`concept`, `t_art`.`viewed`, `t_art`.`title_image`, `t_art`.`title_image_is_illustration`, `t_art`.`author`, `t_art`.`article_priority`, `t_art`.`article_priority_end_date`, `t_art`.`article_place`, `t_art`.`article_datadir`, `Model_Category_1`.`urlkey_cs` AS curlkey_cs, `Model_Category_1`.`id_category`, `Model_Category_1`.`label_cs` FROM `kzvalmez_dev`.`kz_articles` AS t_art LEFT JOIN kz_categories AS Model_Category_1 ON (`Model_Category_1`.`id_category` = `t_art`.`id_cat`)
WHERE (`t_art`.`id_cat` = :idc AND `t_art`.`id_article` NOT IN (:ad49244f_arr_0) AND `t_art`.`add_time` < NOW() )
ORDER BY `t_art`.`add_time` DESC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 4
Key: Name: [4] :idc
paramno=-1
name=[4] ":idc"
is_param=1
param_type=1
Key: Name: [15] :ad49244f_arr_0
paramno=-1
name=[15] ":ad49244f_arr_0"
is_param=1
param_type=2
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 12, čas: 0.000265 s, počet: 1
SQL: [149] SELECT COUNT(`t_ipblocks`.`ip_address`) AS cnt FROM `kzvalmez_dev`.`cubecms_global_ipblock` AS t_ipblocks WHERE (`t_ipblocks`.`ip_address` = :idb )
Params: 1
Key: Name: [4] :idb
paramno=-1
name=[4] ":idb"
is_param=1
param_type=2
;
QUERY: 13, čas: 0.000259 s, počet: 1
SQL: [251] SELECT `t_kzmp`.`id_kz_mainpage`, `t_kzmp`.`item_source`, `t_kzmp`.`item_source_type`, `t_kzmp`.`item_source_id`, `t_kzmp`.`item_source_item_id`, `t_kzmp`.`item_order` FROM `kzvalmez_dev`.`kz_kz_mainpage` AS t_kzmp ORDER BY `t_kzmp`.`item_order` ASC
Params: 0
;
QUERY: 14, čas: 0.000259 s, počet: 1
SQL: [201] SELECT `key`, `value` FROM `kz_config`
UNION ALL
SELECT `key`, `value` FROM `cubecms_global_config`
WHERE `key` NOT IN (SELECT `key` FROM `kz_config`)
ORDER BY `key`
Params: 0
;
QUERY: 15, čas: 0.000161 s, počet: 1
SQL: [1000] SELECT `t_cats`.`id_category`, `t_cats`.`label_cs` , `t_cats`.`alt_cs` , `t_cats`.`description_cs` , `t_cats`.`keywords_cs` , `t_cats`.`default_right`, `t_cats`.`id_owner_user`, `t_cats`.`feeds`, `t_cats`.`individual_panels`, `t_cats`.`module`, `t_cats`.`urlkey_cs` , `t_cats`.`visibility`, `t_cats`.`icon`, `t_cats`.`background`, `t_cats`.`priority`, `t_cats`.`disable_cs` , `t_cats`.`ser_params`, `t_cats`.`data_dir`, `t_cats`.`created`, `t_cats`.`changed`, `t_r`.`id_group`, `t_r`.`right`, `Model_Module_2`.`id_module` AS `id_module`, `Model_Module_2`.`name` AS `name`, `Model_Module_2`.`version` AS `version`, `Model_Module_2`.`version_major` AS `version_major`, `Model_Module_2`.`version_minor` AS `version_minor` FROM `kzvalmez_dev`.`kz_categories` AS t_cats LEFT JOIN kz_rights AS t_r ON (`t_r`.`id_category` = `t_cats`.`id_category` AND t_r.id_group = '2')
LEFT JOIN kz_modules_instaled AS Model_Module_2 ON (`Model_Module_2`.`name` = `t_cats`.`module`)
WHERE (`t_cats`.`disable_cs` = 0 )
Params: 0
;
QUERY: 16, čas: 0.000140 s, počet: 1
SQL: [5605] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND events_places_id_place IN (:ad47506f_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad47506f_arr_0
paramno=-1
name=[15] ":ad47506f_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 17, čas: 0.000138 s, počet: 2
SQL: [1161] SELECT `t_cats`.`id_category`, `t_cats`.`id_owner_user`, `t_cats`.`label_cs` , `t_cats`.`alt_cs` , `t_cats`.`urlkey_cs` , `t_cats`.`disable_cs` , `t_cats`.`module`, `t_cats`.`data_dir`, `t_cats`.`individual_panels`, `t_cats`.`visibility`, `t_cats`.`ser_params`, `t_cats`.`priority`, `t_cats`.`default_right`, `t_cats`.`active`, `t_cats`.`keywords_cs` , `t_cats`.`description_cs` , `t_cats`.`changed`, `t_cats`.`created`, `t_cats`.`feeds`, `t_cats`.`icon`, `t_cats`.`background`, `t_cats`.`sitemap_changefreq`, `t_cats`.`sitemap_priority`, `t_r`.`id_group`, `t_r`.`right`, `Model_Module_2`.`id_module` AS `id_module`, `Model_Module_2`.`name` AS `name`, `Model_Module_2`.`version` AS `version`, `Model_Module_2`.`version_major` AS `version_major`, `Model_Module_2`.`version_minor` AS `version_minor` FROM `kzvalmez_dev`.`kz_categories` AS t_cats LEFT JOIN kz_rights AS t_r ON (`t_r`.`id_category` = `t_cats`.`id_category` AND t_r.id_group = '2')
LEFT JOIN kz_modules_instaled AS Model_Module_2 ON (`Model_Module_2`.`name` = `t_cats`.`module`)
WHERE (`t_cats`.`urlkey_cs` IS NOT NULL )
ORDER BY `t_cats`.`priority` DESC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 2
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 18, čas: 0.000138 s, počet: 1
SQL: [5601] SELECT `t_event`.`id_event`, `t_event`.`id_event`, `t_event`.`id_parent_event`, `t_event`.`id_ev_category`, `t_event`.`id_place`, `t_event`.`id_ev_organizer`, `t_event`.`event_name`, `t_event`.`event_subname`, `t_event`.`event_urlkey`, `t_event`.`event_text`, `t_event`.`event_text_clear`, `t_event`.`event_perex`, `t_event`.`event_author`, `t_event`.`event_website`, `t_event`.`event_active`, `t_event`.`event_recommended`, `t_event`.`event_show_hp`, `t_event`.`event_approved`, `t_event`.`event_place_alt`, `t_event`.`event_url_facebook`, `t_event`.`event_url_youtube`, `t_event`.`event_url_buy`, `t_event`.`event_coloseum_id`, `t_event`.`event_buy_end_days_before`, `t_event`.`event_price`, `t_event`.`event_price_reduced`, `t_event`.`event_price_advance`, `t_event`.`event_price_advance_reduced`, `t_event`.`event_price_second_row`, `t_event`.`event_time_edit`, `t_event`.`event_source`, `t_event`.`event_source_id`, `t_event`.`event_data`, `t_event`.`event_type`, `t_event`.`event_allow_import`, `t_event`.`event_accessibility`, `t_event`.`event_map_url`, `t_event`.`event_image`, ( SELECT GROUP_CONCAT(id_ev_place, ':',place_name SEPARATOR ';') AS `placesstr` FROM `kzvalmez_dev`.`kz_adv_events_places` AS t_advevent_places LEFT JOIN kz_adv_events_has_places AS AdvEventsBase_Model_PLacesConnection_0 ON (`AdvEventsBase_Model_PLacesConnection_0`.`events_places_id_place` = `t_advevent_places`.`id_ev_place`)
WHERE (events_id_event = `t_event`.`id_event`)
GROUP BY `events_id_event`
ORDER BY `t_advevent_places`.`place_name` ASC
) AS `places_short`, IF(MIN(ttimes1.event_date_begin) IS NULL, 10000, (ABS(DATEDIFF(MIN(ttimes1.event_date_begin), :ordDate)) - IF(event_organizer_priority > 0 , event_organizer_priority/ 1000, 0) - IF(event_time_begin IS NULL, 0, 0.001) ) ) AS `ordered`, IF(MIN(ttimes1.event_time_begin) IS NULL, '23:59:59', MIN(ttimes1.event_time_begin)) AS `orderedTimes`, `ttimes1`.`id_event_time` AS `id_event_time`, `ttimes1`.`event_time_text` AS `event_time_text`, `ttimes1`.`event_date_begin` AS `event_date_begin`, `ttimes1`.`event_date_end` AS `event_date_end`, `ttimes1`.`event_time_begin` AS `event_time_begin`, `ttimes1`.`event_time_end` AS `event_time_end`, `ttimes1`.`event_time_price` AS `event_time_price`, `ttimes1`.`event_time_price_reduced` AS `event_time_price_reduced`, `ttimes1`.`event_time_language` AS `event_time_language`, `ttimes1`.`event_time_format` AS `event_time_format`, `ttimes1`.`event_time_coloseum_id` AS `event_time_coloseum_id`, `AdvEventsBase_Model_Organizers_5`.`id_event_organizer` AS `id_event_organizer`, `AdvEventsBase_Model_Organizers_5`.`id_group` AS `id_group`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_priority` AS `event_organizer_priority`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_name` AS `event_organizer_name`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_address` AS `event_organizer_address`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_note` AS `event_organizer_note`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_url` AS `event_organizer_url`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_fcb` AS `event_organizer_fcb`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_twitter` AS `event_organizer_twitter`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_youtube` AS `event_organizer_youtube`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_phone` AS `event_organizer_phone`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_email` AS `event_organizer_email`, `AdvEventsBase_Model_Organizers_5`.`event_organizer_data` AS `event_organizer_data`, `AdvEventsBase_Model_Categories_6`.`ev_category_name` AS `ev_category_name`, `AdvEventsBase_Model_Categories_6`.`ev_category_desc` AS `ev_category_desc`, `AdvEventsBase_Model_Categories_6`.`ev_category_data` AS `ev_category_data`, `iamges`.`event_image_file` AS `title_image`, `iamges`.`event_image_name` AS `title_image_name` FROM `kzvalmez_dev`.`kz_adv_events` AS t_event
INNER JOIN (SELECT MIN(TIMESTAMP(event_date_begin, IF(event_time_begin IS NOT NULL, event_time_begin, '23:59:59')) ) AS `min_date`, `t_event_times`.`id_event_time`, `t_event_times`.`id_event` FROM `kzvalmez_dev`.`kz_adv_events_times` AS t_event_times WHERE ( (event_date_begin BETWEEN :dateFrom AND :dateTo) OR (event_date_end BETWEEN :dateFrom AND :dateTo) OR (event_date_begin <= :dateFrom AND `t_event_times`.`event_date_end` IS NOT NULL AND `t_event_times`.`event_date_end` >= :dateTo ) )
GROUP BY `t_event_times`.`id_event`,`t_event_times`.`id_event_time`
) AS ttimes_min ON (`ttimes_min`.`id_event` = `t_event`.`id_event`)
INNER JOIN kz_adv_events_times AS ttimes1 ON (`ttimes1`.`id_event_time` = `ttimes_min`.`id_event_time`)
LEFT JOIN kz_adv_events_has_places AS tplaces1 ON (`tplaces1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_has_tags AS ttags1 ON (`ttags1`.`events_id_event` = `t_event`.`id_event`)
LEFT JOIN kz_adv_events_organizers AS AdvEventsBase_Model_Organizers_5 ON (`AdvEventsBase_Model_Organizers_5`.`id_event_organizer` = `t_event`.`id_ev_organizer`)
LEFT JOIN kz_adv_events_categories AS AdvEventsBase_Model_Categories_6 ON (`AdvEventsBase_Model_Categories_6`.`id_ev_category` = `t_event`.`id_ev_category`)
LEFT JOIN kz_adv_events_images AS iamges ON (`iamges`.`id_event` = `t_event`.`id_event` AND event_image_is_title = 1)
WHERE (1 = 1 AND `t_event`.`event_active` = 1 AND `t_event`.`event_approved` = 1 AND id_event_organizer IN (:ad4869bf_arr_0) )
GROUP BY `t_event`.`id_event`
ORDER BY `ordered` ASC,`orderedTimes` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 6
Key: Name: [9] :dateFrom
paramno=-1
name=[9] ":dateFrom"
is_param=1
param_type=2
Key: Name: [7] :dateTo
paramno=-1
name=[7] ":dateTo"
is_param=1
param_type=2
Key: Name: [15] :ad4869bf_arr_0
paramno=-1
name=[15] ":ad4869bf_arr_0"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
Key: Name: [8] :ordDate
paramno=-1
name=[8] ":ordDate"
is_param=1
param_type=2
;
QUERY: 19, čas: 0.000133 s, počet: 1
SQL: [1687] SELECT `t_panels`.`id_panel`, `t_panels`.`id_cat`, `t_panels`.`id_show_cat`, `t_panels`.`pname_cs` AS pname, `t_panels`.`porder`, `t_panels`.`position`, `t_panels`.`pparams`, `t_panels`.`icon` AS `picon`, `t_panels`.`background` AS `pbackground`, `t_panels`.`panel_force_global`, `t_panels`.`is_admin_cat`, `t_cat`.`id_category` AS `id_category`, `t_cat`.`id_owner_user` AS `id_owner_user`, `t_cat`.`label_cs` AS label, `t_cat`.`alt_cs` AS alt, `t_cat`.`urlkey_cs` AS urlkey, `t_cat`.`disable_cs` AS disable, `t_cat`.`module` AS `module`, `t_cat`.`data_dir` AS `data_dir`, `t_cat`.`individual_panels` AS `individual_panels`, `t_cat`.`visibility` AS `visibility`, `t_cat`.`ser_params` AS `ser_params`, `t_cat`.`priority` AS `priority`, `t_cat`.`default_right` AS `default_right`, `t_cat`.`active` AS `active`, `t_cat`.`keywords_cs` AS keywords, `t_cat`.`description_cs` AS description, `t_cat`.`changed` AS `changed`, `t_cat`.`created` AS `created`, `t_cat`.`feeds` AS `feeds`, `t_cat`.`icon` AS `icon`, `t_cat`.`background` AS `background`, `t_cat`.`sitemap_changefreq` AS `sitemap_changefreq`, `t_cat`.`sitemap_priority` AS `sitemap_priority`, `t_r`.`id_group`, `t_r`.`right` FROM `kzvalmez_dev`.`kz_panels` AS t_panels LEFT JOIN kz_categories AS t_cat ON (`t_cat`.`id_category` = `t_panels`.`id_cat`)
LEFT JOIN kz_rights AS t_r ON (`t_r`.`id_category` = `t_cat`.`id_category` AND t_r.id_group = '2')
WHERE ( ( SUBSTRING(`right`, 1, 1) = 'r' OR ( `right` IS NULL AND SUBSTRING(`default_right`, 1, 1) = 'r' )) AND ( `t_panels`.`id_show_cat` = 0 OR `t_panels`.`panel_force_global` = 1 ) AND module IS NOT NULL OR `t_panels`.`is_admin_cat` = 1 )
ORDER BY `t_panels`.`porder` DESC
Params: 0
;
QUERY: 20, čas: 0.000122 s, počet: 1
SQL: [856] SELECT `t_partners`.`id_partner`, `t_partners`.`id_group`, `t_partners`.`partner_name`, `t_partners`.`partner_text`, `t_partners`.`partner_note`, `t_partners`.`partner_url`, `t_partners`.`partner_image`, `t_partners`.`partner_order`, `t_partners`.`partner_disabled`, `Partners_Model_Groups_1`.`id_partners_group` AS `id_partners_group`, `Partners_Model_Groups_1`.`id_category` AS `id_category`, `Partners_Model_Groups_1`.`partner_group_name_cs` AS partner_group_name_cs, `Partners_Model_Groups_1`.`partner_group_order` AS `partner_group_order` FROM `kzvalmez_dev`.`kz_partners` AS t_partners LEFT JOIN kz_partners_groups AS Partners_Model_Groups_1 ON (`Partners_Model_Groups_1`.`id_partners_group` = `t_partners`.`id_group`)
WHERE (id_category = :idc )
ORDER BY `partner_group_order` ASC,`t_partners`.`partner_order` ASC,`t_partners`.`partner_name` ASC
Params: 1
Key: Name: [4] :idc
paramno=-1
name=[4] ":idc"
is_param=1
param_type=1
;
QUERY: 21, čas: 0.000118 s, počet: 1
SQL: [1802] SELECT `t_cm_items`.`id_custom_menu_item`, `t_cm_items`.`id_category`, `t_cm_items`.`menu_item_box`, `t_cm_items`.`menu_item_name_cs` , `t_cm_items`.`menu_item_link`, `t_cm_items`.`menu_item_new_window`, `t_cm_items`.`menu_item_active`, `t_cm_items`.`is_tpl_menu`, `t_cm_items`.`menu_item_order`, `t_cm_items`.`id_lft`, `t_cm_items`.`id_rgt`, `t_cm_items`.`level`, `Model_Category_1`.`id_owner_user` AS `id_owner_user`, `Model_Category_1`.`label_cs` AS label_cs, `Model_Category_1`.`alt_cs` AS alt_cs, `Model_Category_1`.`urlkey_cs` AS urlkey_cs, `Model_Category_1`.`disable_cs` AS disable_cs, `Model_Category_1`.`module` AS `module`, `Model_Category_1`.`data_dir` AS `data_dir`, `Model_Category_1`.`individual_panels` AS `individual_panels`, `Model_Category_1`.`visibility` AS `visibility`, `Model_Category_1`.`ser_params` AS `ser_params`, `Model_Category_1`.`priority` AS `priority`, `Model_Category_1`.`default_right` AS `default_right`, `Model_Category_1`.`active` AS `active`, `Model_Category_1`.`keywords_cs` AS keywords_cs, `Model_Category_1`.`description_cs` AS description_cs, `Model_Category_1`.`changed` AS `changed`, `Model_Category_1`.`created` AS `created`, `Model_Category_1`.`feeds` AS `feeds`, `Model_Category_1`.`icon` AS `icon`, `Model_Category_1`.`background` AS `background`, `Model_Category_1`.`sitemap_changefreq` AS `sitemap_changefreq`, `Model_Category_1`.`sitemap_priority` AS `sitemap_priority` FROM `kzvalmez_dev`.`kz_custom_menu_items` AS t_cm_items LEFT JOIN kz_categories AS Model_Category_1 ON (`Model_Category_1`.`id_category` = `t_cm_items`.`id_category`)
WHERE (`t_cm_items`.`menu_item_box` = :box AND `t_cm_items`.`menu_item_active` = 1 AND `t_cm_items`.`id_lft` != 1 AND ( disable_cs = 0 OR `t_cm_items`.`id_category` = 0 ) )
ORDER BY `t_cm_items`.`id_lft` ASC
Params: 1
Key: Name: [4] :box
paramno=-1
name=[4] ":box"
is_param=1
param_type=2
;
QUERY: 22, čas: 0.000117 s, počet: 1
SQL: [339] SELECT `t_jounals`.`id_journal`, `t_jounals`.`journal_number`, `t_jounals`.`journal_year`, `t_jounals`.`journal_viewed`, `t_jounals`.`journal_text`, `t_jounals`.`journal_file` FROM `kzvalmez_dev`.`kz_journals` AS t_jounals ORDER BY `t_jounals`.`journal_year` DESC,`t_jounals`.`journal_number` DESC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 2
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 23, čas: 0.000114 s, počet: 1
SQL: [185] SELECT `t_uss`.`id_user_setting`, `t_uss`.`id_user`, `t_uss`.`setting_name`, `t_uss`.`setting_value` FROM `kzvalmez_dev`.`kz_users_settings` AS t_uss WHERE (`t_uss`.`id_user` = :idu )
Params: 1
Key: Name: [4] :idu
paramno=-1
name=[4] ":idu"
is_param=1
param_type=1
;
QUERY: 24, čas: 0.000105 s, počet: 1
SQL: [303] SELECT `t_cats`.`id_category`, `t_cats`.`label_cs` AS label, `t_cats`.`urlkey_cs` AS urlkey, `t_r`.`id_group`, `t_r`.`right` FROM `kzvalmez_dev`.`kz_categories` AS t_cats LEFT JOIN kz_rights AS t_r ON (`t_r`.`id_category` = `t_cats`.`id_category` AND t_r.id_group = '2')
WHERE (`t_cats`.`feeds` = 1 )
Params: 0
;
QUERY: 25, čas: 0.000103 s, počet: 5
SQL: [925] SELECT `t_cats`.`id_category`, `t_cats`.`id_owner_user`, `t_cats`.`label_cs` , `t_cats`.`alt_cs` , `t_cats`.`urlkey_cs` , `t_cats`.`disable_cs` , `t_cats`.`module`, `t_cats`.`data_dir`, `t_cats`.`individual_panels`, `t_cats`.`visibility`, `t_cats`.`ser_params`, `t_cats`.`priority`, `t_cats`.`default_right`, `t_cats`.`active`, `t_cats`.`keywords_cs` , `t_cats`.`description_cs` , `t_cats`.`changed`, `t_cats`.`created`, `t_cats`.`feeds`, `t_cats`.`icon`, `t_cats`.`background`, `t_cats`.`sitemap_changefreq`, `t_cats`.`sitemap_priority`, `t_r`.`id_group`, `t_r`.`right` FROM `kzvalmez_dev`.`kz_categories` AS t_cats LEFT JOIN kz_rights AS t_r ON (`t_r`.`id_category` = `t_cats`.`id_category` AND t_r.id_group = '2')
WHERE ( ( SUBSTRING(`right`, 1, 1) = 'r' OR ( `right` IS NULL AND SUBSTRING(`default_right`, 1, 1) = 'r' )) AND disable_cs = 0 AND 1 = 1 AND `t_cats`.`disable_cs` = 0 AND `t_cats`.`module` = :module )
Params: 1
Key: Name: [7] :module
paramno=-1
name=[7] ":module"
is_param=1
param_type=2
;
QUERY: 26, čas: 0.000102 s, počet: 1
SQL: [1744] SELECT `t_cm_items`.`id_custom_menu_item`, `t_cm_items`.`id_category`, `t_cm_items`.`menu_item_box`, `t_cm_items`.`menu_item_name_cs` , `t_cm_items`.`menu_item_link`, `t_cm_items`.`menu_item_new_window`, `t_cm_items`.`menu_item_active`, `t_cm_items`.`is_tpl_menu`, `t_cm_items`.`menu_item_order`, `t_cm_items`.`id_lft`, `t_cm_items`.`id_rgt`, `t_cm_items`.`level`, `Model_Category_1`.`id_owner_user` AS `id_owner_user`, `Model_Category_1`.`label_cs` AS label_cs, `Model_Category_1`.`alt_cs` AS alt_cs, `Model_Category_1`.`urlkey_cs` AS urlkey_cs, `Model_Category_1`.`disable_cs` AS disable_cs, `Model_Category_1`.`module` AS `module`, `Model_Category_1`.`data_dir` AS `data_dir`, `Model_Category_1`.`individual_panels` AS `individual_panels`, `Model_Category_1`.`visibility` AS `visibility`, `Model_Category_1`.`ser_params` AS `ser_params`, `Model_Category_1`.`priority` AS `priority`, `Model_Category_1`.`default_right` AS `default_right`, `Model_Category_1`.`active` AS `active`, `Model_Category_1`.`keywords_cs` AS keywords_cs, `Model_Category_1`.`description_cs` AS description_cs, `Model_Category_1`.`changed` AS `changed`, `Model_Category_1`.`created` AS `created`, `Model_Category_1`.`feeds` AS `feeds`, `Model_Category_1`.`icon` AS `icon`, `Model_Category_1`.`background` AS `background`, `Model_Category_1`.`sitemap_changefreq` AS `sitemap_changefreq`, `Model_Category_1`.`sitemap_priority` AS `sitemap_priority` FROM `kzvalmez_dev`.`kz_custom_menu_items` AS t_cm_items LEFT JOIN kz_categories AS Model_Category_1 ON (`Model_Category_1`.`id_category` = `t_cm_items`.`id_category`)
WHERE (`t_cm_items`.`menu_item_box` = :box AND `t_cm_items`.`id_lft` = 1 )
ORDER BY `t_cm_items`.`id_lft` ASC
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 3
Key: Name: [4] :box
paramno=-1
name=[4] ":box"
is_param=1
param_type=2
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 27, čas: 0.000101 s, počet: 1
SQL: [1122] SELECT `t_cats`.`id_category`, `t_cats`.`id_owner_user`, `t_cats`.`label_cs` , `t_cats`.`alt_cs` , `t_cats`.`urlkey_cs` , `t_cats`.`disable_cs` , `t_cats`.`module`, `t_cats`.`data_dir`, `t_cats`.`individual_panels`, `t_cats`.`visibility`, `t_cats`.`ser_params`, `t_cats`.`priority`, `t_cats`.`default_right`, `t_cats`.`active`, `t_cats`.`keywords_cs` , `t_cats`.`description_cs` , `t_cats`.`changed`, `t_cats`.`created`, `t_cats`.`feeds`, `t_cats`.`icon`, `t_cats`.`background`, `t_cats`.`sitemap_changefreq`, `t_cats`.`sitemap_priority`, `t_r`.`id_group`, `t_r`.`right`, `Model_Module_2`.`id_module` AS `id_module`, `Model_Module_2`.`name` AS `name`, `Model_Module_2`.`version` AS `version`, `Model_Module_2`.`version_major` AS `version_major`, `Model_Module_2`.`version_minor` AS `version_minor` FROM `kzvalmez_dev`.`kz_categories` AS t_cats LEFT JOIN kz_rights AS t_r ON (`t_r`.`id_category` = `t_cats`.`id_category` AND t_r.id_group = '2')
LEFT JOIN kz_modules_instaled AS Model_Module_2 ON (`Model_Module_2`.`name` = `t_cats`.`module`)
WHERE (`t_cats`.`id_category` = :id )
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 3
Key: Name: [3] :id
paramno=-1
name=[3] ":id"
is_param=1
param_type=1
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 28, čas: 0.000097 s, počet: 1
SQL: [377] SELECT `t_texts`.`id_text`, `t_texts`.`id_user`, `t_texts`.`id_item`, `t_texts`.`subkey`, `t_texts`.`text_cs` AS text, `t_texts`.`text_clear_cs` AS text_clear, `t_texts`.`label_cs` AS label, `t_texts`.`changed`, `t_texts`.`data` FROM `kzvalmez_dev`.`kz_texts` AS t_texts WHERE (`t_texts`.`id_item` = :idc AND `t_texts`.`subkey` = :sk )
LIMIT :cube_cms_fromrow, :cube_cms_rows
Params: 4
Key: Name: [4] :idc
paramno=-1
name=[4] ":idc"
is_param=1
param_type=1
Key: Name: [3] :sk
paramno=-1
name=[3] ":sk"
is_param=1
param_type=2
Key: Name: [17] :cube_cms_fromrow
paramno=-1
name=[17] ":cube_cms_fromrow"
is_param=1
param_type=1
Key: Name: [14] :cube_cms_rows
paramno=-1
name=[14] ":cube_cms_rows"
is_param=1
param_type=1
;
QUERY: 29, čas: 0.000090 s, počet: 1
SQL: [329] SELECT `t_texts`.`id_text`, `t_texts`.`id_user`, `t_texts`.`id_item`, `t_texts`.`subkey`, `t_texts`.`text_cs` , `t_texts`.`text_clear_cs` , `t_texts`.`label_cs` , `t_texts`.`changed`, `t_texts`.`data` FROM `kzvalmez_dev`.`kz_texts` AS t_texts WHERE (`t_texts`.`id_item` = :idc AND `t_texts`.`subkey` IN (:key_0,:key_1,:key_2) )
Params: 4
Key: Name: [6] :key_0
paramno=-1
name=[6] ":key_0"
is_param=1
param_type=2
Key: Name: [6] :key_1
paramno=-1
name=[6] ":key_1"
is_param=1
param_type=2
Key: Name: [6] :key_2
paramno=-1
name=[6] ":key_2"
is_param=1
param_type=2
Key: Name: [4] :idc
paramno=-1
name=[4] ":idc"
is_param=1
param_type=1
;
QUERY: 30, čas: 0.000088 s, počet: 1
SQL: [169] SELECT `t_mods`.`id_module`, `t_mods`.`name`, `t_mods`.`version`, `t_mods`.`version_major`, `t_mods`.`version_minor` FROM `kzvalmez_dev`.`kz_modules_instaled` AS t_mods
Params: 0
;
QUERY: 31, čas: 0.000083 s, počet: 1
SQL: [315] SELECT `t_texts`.`id_text`, `t_texts`.`id_user`, `t_texts`.`id_item`, `t_texts`.`subkey`, `t_texts`.`text_cs` , `t_texts`.`text_clear_cs` , `t_texts`.`label_cs` , `t_texts`.`changed`, `t_texts`.`data` FROM `kzvalmez_dev`.`kz_texts` AS t_texts WHERE (`t_texts`.`id_item` = :idc AND `t_texts`.`subkey` IN (:key_0) )
Params: 2
Key: Name: [6] :key_0
paramno=-1
name=[6] ":key_0"
is_param=1
param_type=2
Key: Name: [4] :idc
paramno=-1
name=[4] ":idc"
is_param=1
param_type=1
;