Error description: 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 v.id != GROUP BY v.nombre' at line 1
SELECT pd.id, v.nombre, v.valor, v.id, v.imagen FROM productos_detalles pd join variantes_valores v on pd.variantes_valor_id = v.id WHERE pd.producto_id = 8 and pd.id != and v.id != GROUP BY v.nombre