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 = 'uk'
)
WHERE
(
(
LENGTH(n.features_hash)= 6
AND LOCATE('10-212', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 5
AND LOCATE('12-56', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 5
AND LOCATE('15-54', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 6
AND LOCATE('78-215', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 6
AND LOCATE('79-157', n.features_hash) > 0
)
OR (
LENGTH(n.features_hash)= 7
AND LOCATE('74-1908', n.features_hash) > 0
)
)
AND n.category_id = 1062
AND n.fixed in ('F', 'U')
AND n.company_id = 1