Chyba při vykonávání sql dotazu: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE YEAR(datum) = 2026 ORDER BY datum DESC' at line 1
Fatal error: Uncaught Error: Call to a member function rowCount() on null in D:\Weby\Oshmelnik\funkce.php:35
Stack trace:
#0 D:\Weby\Oshmelnik\aktuality.php(76): db_num_rows(NULL)
#1 {main}
thrown in D:\Weby\Oshmelnik\funkce.php on line 35