SELECT `oggetti`.`id`, `oggetti`.`codice`, `oggetti`.`nome_it` AS `nome`, `prodotti`.`nome_it` AS `nome_prod`, `prezzo`, `id_iva`, `dispon`, `oggetti`.`promoz`, `dispon` FROM `oggetti`, `prodotti` WHERE `oggetti`.`id` = AND `id_prodotto` = `prodotti`.`id` LIMIT 1
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 `id_prodotto` = `prodotti`.`id` LIMIT 1' at line 3