SQL Error

SQLSTATE[42000]: Syntax error or access violation: 1064 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 c.id_marca = 3 ORDER BY c.ordine' at line 3 SELECT c.id, c.codice FROM mec_codici c WHERE CONCAT('|', c.visibile, '|') LIKE '%1%' AND c.id_sottotipologia = AND c.id_marca = 3 ORDER BY c.ordine Execute() called at /web/htdocs/www.commercialericambi.com/home/public/plugin/function.tipologie_marca.php at line 66<br />
Fatal error: Call to a member function FetchRow() on a non-object in /web/htdocs/www.commercialericambi.com/home/public/plugin/function.tipologie_marca.php on line 67