Notice (8): Undefined offset: 0 [APP/Controller/PostsController.php, line 270]
.: El Sol de Margarita :. El Sol de Margarita

Database Error

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY id ASC' at line 4

SQL Query: SELECT * FROM poll_answers WHERE poll_id = ORDER BY id ASC

Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp

Stack Trace

(default) 57 queries took 487 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1UPDATE `esdm`.`drafts` SET `status_id`=3 WHERE (`status_id`=2) AND (`publish_after` < '2014-12-20 10:37')000
2UPDATE `esdm`.`galleries` SET `show`=1 WHERE (`show`=0) AND (`active`=1) AND (`begin_date` < '2014-12-20 10:37')002
3UPDATE `esdm`.`ads` SET `show`=1 WHERE (`show`=0) AND (`active`=1) AND (`start` < '2014-12-20 10:37') AND (`end` > '2014-12-20 10:37')000
4UPDATE `esdm`.`ads` SET `show`=0 WHERE (`end` < '2014-12-20 10:37') OR (`start` > '2014-12-20 10:37')000
5SELECT `Frontpage`.`id`, `Frontpage`.`name`, `Frontpage`.`created`, `Frontpage`.`date`, `Frontpage`.`processed`, `Frontpage`.`user_id` FROM `esdm`.`frontpages` AS `Frontpage` WHERE ((`date` = '2014-12-20') AND (`processed` = '0')) ORDER BY `id` ASC LIMIT 1000
6SELECT `Draft`.`id`, `Draft`.`special`, `Draft`.`title`, `Draft`.`image_url`, `Draft`.`extract`, `Draft`.`category_id` FROM `esdm`.`drafts` AS `Draft` WHERE ((`Draft`.`status_id` = 3) AND (`Draft`.`column` = 1)) ORDER BY LEFT(`Draft`.`publish_after`, 10) DESC, `Draft`.`relevance_id` DESC, `Draft`.`publish_after` DESC LIMIT 10101076
7SELECT `Draft`.`id`, `Draft`.`special`, `Draft`.`title`, `Draft`.`image_url`, `Draft`.`extract`, `Draft`.`category_id` FROM `esdm`.`drafts` AS `Draft` WHERE `Draft`.`status_id` = 3 AND `Draft`.`column` = 2 ORDER BY LEFT(`Draft`.`publish_after`, 10) DESC, `Draft`.`relevance_id` DESC, `Draft`.`publish_after` DESC LIMIT 101010361
8SELECT `Draft`.`id`, `Draft`.`title`, `Draft`.`special`, `Draft`.`credit` FROM `esdm`.`drafts` AS `Draft` WHERE ((`Draft`.`status_id` = 3) AND (`Draft`.`category_id` = 7)) ORDER BY `Draft`.`publish_after` DESC LIMIT 5550
9SELECT `Category`.`id`, `Category`.`name` FROM `esdm`.`categories` AS `Category` WHERE `active` = '1' ORDER BY `Category`.`order` ASC33330
10SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 1) AND (`active` = '1')) ORDER BY `Category`.`order` ASC990
11SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 4)) ORDER BY `Category`.`order` ASC000
12SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 5)) ORDER BY `Category`.`order` ASC000
13SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 3)) ORDER BY `Category`.`order` ASC000
14SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 6)) ORDER BY `Category`.`order` ASC000
15SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 1)) ORDER BY `Category`.`order` ASC000
16SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 9)) ORDER BY `Category`.`order` ASC000
17SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 8)) ORDER BY `Category`.`order` ASC000
18SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 22)) ORDER BY `Category`.`order` ASC24240
19SELECT `Category`.`id`, `Category`.`name`, `Category`.`menu_show` FROM `esdm`.`categories` AS `Category` WHERE ((`level` = 2) AND (`active` = '1') AND (`parent` = 21)) ORDER BY `Category`.`order` ASC000
20SELECT `Draft`.`id`, `Draft`.`highlights`, `Draft`.`hits` FROM `esdm`.`drafts` AS `Draft` WHERE ((`publish_after` LIKE '2014-12-20%') AND (`status_id` = 3)) ORDER BY `Draft`.`hits` DESC LIMIT 44448
21SELECT DISTINCT `Ad`.`zone` FROM `esdm`.`ads` AS `Ad` WHERE `filter` LIKE '%#0#%'770
22SELECT `Ad`.`id`, `Ad`.`name`, `Ad`.`anuncio`, `Ad`.`factura`, `Ad`.`active`, `Ad`.`zone`, `Ad`.`filter`, `Ad`.`target`, `Ad`.`link`, `Ad`.`exclusive`, `Ad`.`url`, `Ad`.`path_to`, `Ad`.`mime_type`, `Ad`.`user_id`, `Ad`.`editor`, `Ad`.`status_id`, `Ad`.`start`, `Ad`.`end`, `Ad`.`created`, `Ad`.`modified`, `Ad`.`file`, `Ad`.`show` FROM `esdm`.`ads` AS `Ad` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'lat_sup_der') AND (`show` = '1'))110
23SELECT `Ad`.`id`, `Ad`.`name`, `Ad`.`anuncio`, `Ad`.`factura`, `Ad`.`active`, `Ad`.`zone`, `Ad`.`filter`, `Ad`.`target`, `Ad`.`link`, `Ad`.`exclusive`, `Ad`.`url`, `Ad`.`path_to`, `Ad`.`mime_type`, `Ad`.`user_id`, `Ad`.`editor`, `Ad`.`status_id`, `Ad`.`start`, `Ad`.`end`, `Ad`.`created`, `Ad`.`modified`, `Ad`.`file`, `Ad`.`show` FROM `esdm`.`ads` AS `Ad` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'cab_izq') AND (`show` = '1'))000
24SELECT `Ad`.`id`, `Ad`.`name`, `Ad`.`anuncio`, `Ad`.`factura`, `Ad`.`active`, `Ad`.`zone`, `Ad`.`filter`, `Ad`.`target`, `Ad`.`link`, `Ad`.`exclusive`, `Ad`.`url`, `Ad`.`path_to`, `Ad`.`mime_type`, `Ad`.`user_id`, `Ad`.`editor`, `Ad`.`status_id`, `Ad`.`start`, `Ad`.`end`, `Ad`.`created`, `Ad`.`modified`, `Ad`.`file`, `Ad`.`show` FROM `esdm`.`ads` AS `Ad` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'ban-sun-sol-exc') AND (`show` = '1'))330
25SELECT `Ad`.`id`, `Ad`.`name`, `Ad`.`anuncio`, `Ad`.`factura`, `Ad`.`active`, `Ad`.`zone`, `Ad`.`filter`, `Ad`.`target`, `Ad`.`link`, `Ad`.`exclusive`, `Ad`.`url`, `Ad`.`path_to`, `Ad`.`mime_type`, `Ad`.`user_id`, `Ad`.`editor`, `Ad`.`status_id`, `Ad`.`start`, `Ad`.`end`, `Ad`.`created`, `Ad`.`modified`, `Ad`.`file`, `Ad`.`show` FROM `esdm`.`ads` AS `Ad` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'full-banner-footer') AND (`show` = '1'))000
26SELECT `Ad`.`id`, `Ad`.`name`, `Ad`.`anuncio`, `Ad`.`factura`, `Ad`.`active`, `Ad`.`zone`, `Ad`.`filter`, `Ad`.`target`, `Ad`.`link`, `Ad`.`exclusive`, `Ad`.`url`, `Ad`.`path_to`, `Ad`.`mime_type`, `Ad`.`user_id`, `Ad`.`editor`, `Ad`.`status_id`, `Ad`.`start`, `Ad`.`end`, `Ad`.`created`, `Ad`.`modified`, `Ad`.`file`, `Ad`.`show` FROM `esdm`.`ads` AS `Ad` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'Ban_Home_Izq_2') AND (`show` = '1'))110
27SELECT `Ad`.`id`, `Ad`.`name`, `Ad`.`anuncio`, `Ad`.`factura`, `Ad`.`active`, `Ad`.`zone`, `Ad`.`filter`, `Ad`.`target`, `Ad`.`link`, `Ad`.`exclusive`, `Ad`.`url`, `Ad`.`path_to`, `Ad`.`mime_type`, `Ad`.`user_id`, `Ad`.`editor`, `Ad`.`status_id`, `Ad`.`start`, `Ad`.`end`, `Ad`.`created`, `Ad`.`modified`, `Ad`.`file`, `Ad`.`show` FROM `esdm`.`ads` AS `Ad` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'Ban_Home_Izq_1') AND (`show` = '1'))000
28SELECT `Ad`.`id`, `Ad`.`name`, `Ad`.`anuncio`, `Ad`.`factura`, `Ad`.`active`, `Ad`.`zone`, `Ad`.`filter`, `Ad`.`target`, `Ad`.`link`, `Ad`.`exclusive`, `Ad`.`url`, `Ad`.`path_to`, `Ad`.`mime_type`, `Ad`.`user_id`, `Ad`.`editor`, `Ad`.`status_id`, `Ad`.`start`, `Ad`.`end`, `Ad`.`created`, `Ad`.`modified`, `Ad`.`file`, `Ad`.`show` FROM `esdm`.`ads` AS `Ad` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'lat_seg_der') AND (`show` = '1'))110
29SELECT DISTINCT `Banner`.`zone` FROM `esdm`.`banners` AS `Banner` WHERE `filter` LIKE '%#0#%'16160
30SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'lat_qui_der') AND (`active` = '1'))110
31SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'cin-ser-car') AND (`active` = '1'))550
32SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'lat_sex_der') AND (`active` = '1'))220
33SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'Ban_Home_Izq_2') AND (`active` = '1'))770
34SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'hom_col_izq_3') AND (`active` = '1'))110
35SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'cab_izq') AND (`active` = '1'))440
36SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'lat_cua_der') AND (`active` = '1'))110
37SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'pro-1A-inf') AND (`active` = '1'))110
38SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'hom_lat_esp') AND (`active` = '1'))000
39SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'Hom-pro-inf') AND (`active` = '1'))110
40SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'hom_pildora') AND (`active` = '1'))110
41SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'Hom-pro-inf-1') AND (`active` = '1'))110
42SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'hom_lat_esp_2') AND (`active` = '1'))110
43SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'ban_supl_sup_der') AND (`active` = '1'))110
44SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'lat_set_der') AND (`active` = '1'))110
45SELECT `Banner`.`id`, `Banner`.`name`, `Banner`.`active`, `Banner`.`zone`, `Banner`.`filter`, `Banner`.`target`, `Banner`.`link`, `Banner`.`exclusive`, `Banner`.`url`, `Banner`.`path_to`, `Banner`.`mime_type`, `Banner`.`user_id`, `Banner`.`editor`, `Banner`.`status_id`, `Banner`.`start`, `Banner`.`end`, `Banner`.`created`, `Banner`.`modified`, `Banner`.`file`, `Banner`.`show` FROM `esdm`.`banners` AS `Banner` WHERE ((`filter` LIKE '%#0#%') AND (`zone` LIKE 'ban_supl_sup_izq') AND (`active` = '1'))330
46SELECT `Gallery`.`id` FROM `esdm`.`galleries` AS `Gallery` WHERE `show` = '1' ORDER BY `Gallery`.`modified` DESC LIMIT 5550
47SELECT `Gallery`.`id`, `Gallery`.`name`, `Gallery`.`image_url`, `Gallery`.`image_title`, `Gallery`.`image_alt`, `Gallery`.`end_date`, `Gallery`.`begin_date`, `Gallery`.`active`, `Gallery`.`user_id`, `Gallery`.`editor`, `Gallery`.`created`, `Gallery`.`modified`, `Gallery`.`show` FROM `esdm`.`galleries` AS `Gallery` WHERE `Gallery`.`id` = 916 LIMIT 1110
48SELECT `GalleryPic`.`id`, `GalleryPic`.`gallery_id`, `GalleryPic`.`pic`, `GalleryPic`.`title`, `GalleryPic`.`alt`, `GalleryPic`.`displayed`, `GalleryPic`.`created`, `GalleryPic`.`modified` FROM `esdm`.`gallery_pics` AS `GalleryPic` WHERE `GalleryPic`.`gallery_id` = (916) ORDER BY `GalleryPic`.`created` DESC 15150
49SELECT `Gallery`.`id`, `Gallery`.`name`, `Gallery`.`image_url`, `Gallery`.`image_title`, `Gallery`.`image_alt`, `Gallery`.`end_date`, `Gallery`.`begin_date`, `Gallery`.`active`, `Gallery`.`user_id`, `Gallery`.`editor`, `Gallery`.`created`, `Gallery`.`modified`, `Gallery`.`show` FROM `esdm`.`galleries` AS `Gallery` WHERE `Gallery`.`id` = 914 LIMIT 1110
50SELECT `GalleryPic`.`id`, `GalleryPic`.`gallery_id`, `GalleryPic`.`pic`, `GalleryPic`.`title`, `GalleryPic`.`alt`, `GalleryPic`.`displayed`, `GalleryPic`.`created`, `GalleryPic`.`modified` FROM `esdm`.`gallery_pics` AS `GalleryPic` WHERE `GalleryPic`.`gallery_id` = (914) ORDER BY `GalleryPic`.`created` DESC 660
51SELECT `Gallery`.`id`, `Gallery`.`name`, `Gallery`.`image_url`, `Gallery`.`image_title`, `Gallery`.`image_alt`, `Gallery`.`end_date`, `Gallery`.`begin_date`, `Gallery`.`active`, `Gallery`.`user_id`, `Gallery`.`editor`, `Gallery`.`created`, `Gallery`.`modified`, `Gallery`.`show` FROM `esdm`.`galleries` AS `Gallery` WHERE `Gallery`.`id` = 906 LIMIT 1110
52SELECT `GalleryPic`.`id`, `GalleryPic`.`gallery_id`, `GalleryPic`.`pic`, `GalleryPic`.`title`, `GalleryPic`.`alt`, `GalleryPic`.`displayed`, `GalleryPic`.`created`, `GalleryPic`.`modified` FROM `esdm`.`gallery_pics` AS `GalleryPic` WHERE `GalleryPic`.`gallery_id` = (906) ORDER BY `GalleryPic`.`created` DESC 990
53SELECT `Gallery`.`id`, `Gallery`.`name`, `Gallery`.`image_url`, `Gallery`.`image_title`, `Gallery`.`image_alt`, `Gallery`.`end_date`, `Gallery`.`begin_date`, `Gallery`.`active`, `Gallery`.`user_id`, `Gallery`.`editor`, `Gallery`.`created`, `Gallery`.`modified`, `Gallery`.`show` FROM `esdm`.`galleries` AS `Gallery` WHERE `Gallery`.`id` = 905 LIMIT 1110
54SELECT `GalleryPic`.`id`, `GalleryPic`.`gallery_id`, `GalleryPic`.`pic`, `GalleryPic`.`title`, `GalleryPic`.`alt`, `GalleryPic`.`displayed`, `GalleryPic`.`created`, `GalleryPic`.`modified` FROM `esdm`.`gallery_pics` AS `GalleryPic` WHERE `GalleryPic`.`gallery_id` = (905) ORDER BY `GalleryPic`.`created` DESC 770
55SELECT `Gallery`.`id`, `Gallery`.`name`, `Gallery`.`image_url`, `Gallery`.`image_title`, `Gallery`.`image_alt`, `Gallery`.`end_date`, `Gallery`.`begin_date`, `Gallery`.`active`, `Gallery`.`user_id`, `Gallery`.`editor`, `Gallery`.`created`, `Gallery`.`modified`, `Gallery`.`show` FROM `esdm`.`galleries` AS `Gallery` WHERE `Gallery`.`id` = 904 LIMIT 1110
56SELECT `GalleryPic`.`id`, `GalleryPic`.`gallery_id`, `GalleryPic`.`pic`, `GalleryPic`.`title`, `GalleryPic`.`alt`, `GalleryPic`.`displayed`, `GalleryPic`.`created`, `GalleryPic`.`modified` FROM `esdm`.`gallery_pics` AS `GalleryPic` WHERE `GalleryPic`.`gallery_id` = (904) ORDER BY `GalleryPic`.`created` DESC 880
57 SELECT * FROM polls WHERE active = 1 AND ( NOW() BETWEEN begin_date AND end_date ) ORDER BY begin_date DESC LIMIT 1 000