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'
LEFT JOIN cscart_product_bundle_product_links as links ON bundles.bundle_id = links.bundle_id
WHERE
1 = 1
AND links.product_id = 288
AND links.show_on_product_page = 'Y'
AND bundles.status = 'A'
AND IF(
bundles.date_from, bundles.date_from <= 1734948302,
1
)
AND IF(
bundles.date_to, bundles.date_to >= 1734948302,
1
)
GROUP BY
bundles.bundle_id
ORDER BY
bundles.bundle_id asc
LIMIT
0, 10