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 'c '' AND sID = '1' LIMIT 1' at line 1 Fatal error: Uncaught TypeError: mysqli_num_rows(): Argument #1 ($result) must be of type mysqli_result, bool given in /home/httpd/vhosts/stonecontrol.ch/httpsdocs/include/xperto_cms.php:187 Stack trace: #0 /home/httpd/vhosts/stonecontrol.ch/httpsdocs/include/xperto_cms.php(187): mysqli_num_rows(false) #1 /home/httpd/vhosts/stonecontrol.ch/httpsdocs/include/xperto_cms.php(76): getArtikelIDfromSEO('' c '') #2 /home/httpd/vhosts/stonecontrol.ch/httpsdocs/index.php(22): include_once('/home/httpd/vho...') #3 {main} thrown in /home/httpd/vhosts/stonecontrol.ch/httpsdocs/include/xperto_cms.php on line 187