SELECT
*
FROM
cscart_product_bundles as bundles
LEFT JOIN cscart_product_bundle_descriptions as descriptions ON bundles.bundle_id = descriptions.bundle_id
AND descriptions.lang_code = 'en'
WHERE
1 = 1
AND bundles.display_in_promotions = 'Y'
AND bundles.status = 'A'
AND IF(
bundles.date_from, bundles.date_from <= 1745938829,
1
)
AND IF(
bundles.date_to, bundles.date_to >= 1745938829,
1
)
GROUP BY
bundles.bundle_id
ORDER BY
bundles.bundle_id asc