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-1855', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 7
AND LOCATE('29-1856', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 6
AND LOCATE('65-627', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 6
AND LOCATE('65-393', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 6
AND LOCATE('65-626', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 6
AND LOCATE('65-625', n.features_hash) > 0
)
)
AND n.category_id = 892
AND n.fixed in ('F', 'U')
AND n.company_id = 1