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 <= '1573945200') and (D_Kon_Datum >= '1573945200')) OR (D_Zac_Datum >= '1573945200'))) and (Stav_ = '1') and (d_uverejneni_ <= '1573951319') and ((d_smazano IS NULL) or (d_smazano = '0')) and ((d_stazeni > '1573864919') or (d_stazeni IS NULL) or (d_stazeni = '0')) order by prispendlit_ DESC, D_Zac_Datum
--