SQLSTATE[22008]: Datetime field overflow: 7 BŁĄD: wartość pola daty/czasu poza zakresem: "2026-09-00" LINE 4: od_data <= '2026-09-00' and ^ HINT: Być może potrzebujesz innego ustawienia "datestyle".

SELECT count(*) as ilosc FROM antv_kalendarz WHERE od_data <= '2026-09-00' and do_data >= '2026-09-00' AND stan = 'AKTYWNY' (Szablon->PokazListeDokumentow)