Nuestras referencias a su alcance

Fatal error: Uncaught Exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND idLinguaSottocategoria =3) OR (idSottocategoria IS NULL AND idLinguaSottocat' at line 1 query: SELECT * FROM categorie_testi_view WHERE idMacrocategoria = NULL AND idCategoria = NULL AND ((idSottocategoria = AND idLinguaSottocategoria =3) OR (idSottocategoria IS NULL AND idLinguaSottocategoria IS NULL)) AND idLinguaMacrocategoria = ? AND idLinguaCategoria = ? LIMIT 1 in /home/tgsstamp/public_html/SALES/assets/inc/MysqliDb.php:1632 Stack trace: #0 /home/tgsstamp/public_html/SALES/assets/inc/MysqliDb.php(1286): MysqliDb->_prepareQuery() #1 /home/tgsstamp/public_html/SALES/assets/inc/MysqliDb.php(541): MysqliDb->_buildQuery(1) #2 /home/tgsstamp/public_html/SALES/assets/inc/MysqliDb.php(562): MysqliDb->get('categorie_testi...', 1, '*') #3 /home/tgsstamp/public_html/es/contatti.php(304): MysqliDb->getOne('categorie_testi...') #4 {main} thrown in /home/tgsstamp/public_html/SALES/assets/inc/MysqliDb.php on line 1632