Сегодня
26 ноября
2024г.
Смотреть
события на этот день >>
08:45, Ноябрь 26
08:55, Ноябрь 25
08:53, Ноябрь 22
09:05, Ноябрь 21
08:49, Ноябрь 20
SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='14'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1
SELECT a.Banner_ID,
a.Campaign_ID,
d.Type,
h.BannerSize_Name,
d.File,
d.Alt,
d.Text,
g.Field_ID,
d.NewWindow
FROM (Banner_CampaignBanner AS a,
Banner_CampaignZone AS b,
Message282 AS c,
Message280 as d,
Message290 AS e,
Message284 AS f,
Field AS g)
LEFT JOIN Classificator_BannerSize AS h
ON h.BannerSize_ID=d.Size
WHERE ((c.Start <= IF((c.Start IS NOT NULL OR c.Start != 0), NOW(), 0)
AND c.Stop > IF((c.Stop IS NOT NULL OR c.Stop != 0), NOW(), 0))
AND IF ((c.Shows IS NOT NULL OR c.Shows != 0),
(c.Showed+1),
0)
<= IF ((c.Shows IS NOT NULL OR c.Shows != 0),
c.Shows,
0))
AND a.Campaign_ID=b.Campaign_ID
AND c.Checked=1
AND a.Campaign_ID=c.Message_ID AND b.Zone_ID='2'
AND b.Zone_ID=e.Message_ID
AND ((e.Site='1' AND (e.Section IS NULL OR e.Section = 0))
OR (e.Site='1' AND (e.Section='524' OR e.Section = '521'))
OR ((e.Section='524' OR e.Section = '521') AND (e.Site IS NULL OR e.Site = 0))
OR (e.Class='491' AND e.Object='0')
OR (e.Class='491' AND (e.Object IS NULL OR e.Object = 0))) AND f.Message_ID = d.Script AND d.Status=1 AND d.Checked=1 AND c.Size=d.Size AND d.Size=e.Size AND a.Banner_ID=d.Message_ID AND f.Message_ID=d.Script AND f.TimeZone16=1
AND f.Day2=1
AND g.Class_ID=280
AND g.TypeOfData_ID=6
AND g.Field_Name='File'
ORDER BY d.`Created` DESC
LIMIT 1
События
6 мая 0319 год
6 мая 1432 год
6 мая 1484 год
6 мая 1576 год
6 мая 1686 год
6 мая 1686 год
6 мая 1715 год
6 мая 1718 год
6 мая 1742 год
6 мая 1758 год
6 мая 1761 год
6 мая 1776 год
6 мая 1779 год
6 мая 1782 год
6 мая 1803 год
6 мая 1806 год
6 мая 1828 год
6 мая 1833 год
6 мая 1835 год
6 мая 1840 год
6 мая 1853 год
6 мая 1856 год
6 мая 1859 год
6 мая 1861 год
6 мая 1872 год
6 мая 1872 год
6 мая 1873 год
6 мая 1881 год
6 мая 1889 год
6 мая 1889 год
6 мая 1890 год
6 мая 1890 год
6 мая 1892 год
6 мая 1896 год
6 мая 1904 год
6 мая 1907 год
6 мая 1908 год
6 мая 1912 год
6 мая 1913 год
6 мая 1914 год
6 мая 1917 год
6 мая 1921 год
6 мая 1921 год
6 мая 1922 год
6 мая 1925 год
6 мая 1927 год
6 мая 1930 год
6 мая 1932 год
6 мая 1934 год
6 мая 1937 год
6 мая 1940 год
6 мая 1941 год
6 мая 1942 год
6 мая 1943 год
6 мая 1944 год
6 мая 1945 год
6 мая 1945 год
6 мая 1946 год
6 мая 1949 год
6 мая 1950 год
6 мая 1953 год
6 мая 1955 год
6 мая 1958 год
6 мая 1960 год
6 мая 1970 год
6 мая 1970 год
6 мая 1971 год
6 мая 1972 год
6 мая 1974 год
6 мая 1975 год
6 мая 1975 год
6 мая 1975 год
6 мая 1979 год
6 мая 1981 год
6 мая 1985 год
6 мая 1990 год
6 мая 1991 год
6 мая 1991 год
6 мая 1992 год
6 мая 1992 год
6 мая 1994 год
6 мая 1995 год
6 мая 1995 год
6 мая 1997 год
6 мая 1998 год
6 мая 1998 год
6 мая 2000 год
6 мая 2006 год
6 мая 2009 год
6 мая 2010 год
6 мая 2012 год
6 мая 2022 год