     FROM cpeEntry WHERE `part`=p_part AND `vendor`=p_vendor AND `product`=p_product
         AND `version`=p_version AND `update_version`=p_update_version AND `edition`=p_edition 
         AND `lang`=p_lang AND `sw_edition`=p_sw_edition AND `target_sw`=p_target_sw 
-        AND `target_hw`=p_target_hw AND `other`=p_other;
+        AND `target_hw`=p_target_hw AND `other`=p_other
+	LIMIT 1;
 
     IF cpeId > 0 THEN
         IF currentEcosystem IS NULL AND p_ecosystem IS NOT NULL THEN

SET SQL_SAFE_UPDATES = @OLD_SQL_SAFE_UPDATES;
SET SQL_MODE = @OLD_SQL_MODE;

SELECT vulnerabilityId;

END //

    IN p_v3Version VARCHAR(5))
BEGIN
DECLARE vulnerabilityId INT DEFAULT 0;

START TRANSACTION;

SET @OLD_SQL_SAFE_UPDATES = (SELECT @@SQL_SAFE_UPDATES);
SET @OLD_SQL_MODE = @@sql_mode;
