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 '' at line 1

SELECT Id FROM categorie WHERE IdDominio =

[TEP STOP]
Traccia Errore:
#0 db_error(SELECT Id FROM categorie WHERE IdDominio = , 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 '' at line 1) called at [C:\xampp\htdocs\www\multidominio\inclusi\funzioni\database.php:66]
#1 q(SELECT Id FROM categorie WHERE IdDominio = ) called at [C:\xampp\htdocs\www\multidominio\inclusi\funzioni\database.php:178]
#2 EVT(categorie, IdDominio = , Id) called at [C:\xampp\htdocs\www\multidominio\inclusi\funzioni\database.php:182]
#3 EVTcs(categorie, IdDominio = , Id) called at [C:\xampp\htdocs\www\multidominio\inclusi\classi\class.Stato.php:248]
#4 Stato->AcquisisciIdCategoriaPrincipale() called at [C:\xampp\htdocs\www\multidominio\inclusi\classi\class.Stato.php:73]
#5 Stato->__construct() called at [C:\xampp\htdocs\www\multidominio\index.php:36]
Fatal error: Call to a member function fetch_array() on boolean in C:\xampp\htdocs\www\multidominio\inclusi\funzioni\database.php on line 119