42000
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 rangeItem.deleted = 0 LIMIT 1' at line 1
SELECT *, rangeItem.nome AS nome, product.product_id AS product_id, product.nome AS product_nome, product.gender AS product_gender, product.tipoProdotti AS product_tipoProdotti, brand.brand_id AS brand_id, brand.nome AS brand_nome, brand.descrizione AS brand_descrizione FROM rangeItem INNER JOIN product ON (rangeItem.product_id = product.product_id) INNER JOIN brand ON (rangeItem.brand_id = brand.brand_id) WHERE rangeItem.rangeItem_id = AND rangeItem.deleted = 0 LIMIT 1