Notice: Undefined index: hrac in /home/ on line 30

Fatal error: Uncaught SMysqlException: [0]: 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 ') OR (d.vitez=-1 AND d.id_host=),1,0)) AS vyhry,sum(if((d.vitez=-1 AND d.id_doma' at line 2 thrown in /home/ on line 64