INNER JOIN notia ON (notia.cd_matia = matia.cd_matia) AND matia.cd_matia_statu in (2) AND now() >= publi.dt_publi_ini AND (now() <= publi.dt_publi_fim OR publi.dt_publi_fim is null) AND ( ( ( sesit.dt_sesit_publi is null OR matia.dt_matia_incl > date_sub(sesit.dt_sesit_publi, interval ifnull(sesit.qt_sesit_publi,1) day) ) AND sesit.id_sesit_otimi = 1 ) OR sesit.id_sesit_otimi is null ) ORDER BY publi.dt_publi_ini DESC LIMIT 0, 15

Edições anteriores