query neprovedeno:
SELECT *,b.id AS mainid FROM blogging AS b LEFT JOIN blogging_ AS b_n ON b.id=b_n.id WHERE ((((D_Zac_Datum <= '1574377200') and (D_Kon_Datum >= '1574377200')) OR (D_Zac_Datum >= '1574377200'))) and (Stav_ = '1') and (d_uverejneni_ <= '1574424412') and ((d_smazano IS NULL) or (d_smazano = '0')) and ((d_stazeni > '1574338012') or (d_stazeni IS NULL) or (d_stazeni = '0')) order by prispendlit_ DESC, D_Zac_Datum
--