SELECT
n.sf_id,
n.features_hash,
n.show_in_breadcrumbs,
nd.product_breadcrumb
FROM
cscart_ab__sf_names as n
INNER JOIN cscart_ab__sf_name_descriptions as nd ON (
nd.sf_id = n.sf_id
AND nd.lang_code = 'en'
)
WHERE
(
(
LENGTH(n.features_hash)= 6
AND LOCATE('1-2526', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 7
AND LOCATE('29-1870', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 7
AND LOCATE('55-2982', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 5
AND LOCATE('65-59', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 5
AND LOCATE('65-58', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 6
AND LOCATE('25-356', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 7
AND LOCATE('20-2986', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 7
AND LOCATE('22-2987', n.features_hash) > 0
)
)
AND n.category_id = 447
AND n.fixed in ('F', 'U')
AND n.company_id = 1