Prodotti Correlati

QUERY: SELECT * FROM CRM_prodotti AS P LEFT JOIN CRM_categorie AS C ON P.id_categoria = C.id_categoria LEFT JOIN CRM_macrocategorie AS MA ON C.id_macro = MA.id_macro LEFT JOIN CRM_marchi AS MARK ON P.code_marchio_prodotto = MARK.code_marchio WHERE P.id_categoria = AND P.id_prodotto != 80; Error: 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 P.id_prodotto != 80' at line 1