Hi,
Yes, something like that should do so that you don't take into account the shipping price entries that are only to set a shipping price per product and not to block product shipping:
SELECT
jos_hikashop_product.product_name,
jos_hikashop_shipping.shipping_name,
jos_hikashop_product.product_code
FROM
jos_hikashop_shipping_price
INNER JOIN jos_hikashop_product ON jos_hikashop_product.product_id = jos_hikashop_shipping_price.shipping_price_ref_id
INNER JOIN jos_hikashop_shipping ON jos_hikashop_shipping.shipping_id = jos_hikashop_shipping_price.shipping_id
WHERE jos_hikashop_shipping_price.shipping_price_value = -1 OR jos_hikashop_shipping_price.shipping_fee_value = -1
ORDER BY product_code