SELECT
cscart_ab__stickers.*,
descriptions.*,
images.image_id,
cscart_ab__stickers.sticker_id as sticker_id
FROM
cscart_ab__stickers
LEFT JOIN cscart_ab__sticker_descriptions as descriptions ON cscart_ab__stickers.sticker_id = descriptions.sticker_id
AND descriptions.lang_code = 'en'
LEFT JOIN cscart_ab__sticker_images AS images ON cscart_ab__stickers.sticker_id = images.sticker_id
AND images.lang_code = 'en'
WHERE
FIND_IN_SET (1, storefront_ids)
AND cscart_ab__stickers.status = 'A'
AND (
(
cscart_ab__stickers.from_date <= 1730581200
OR cscart_ab__stickers.from_date = 0
)
AND (
cscart_ab__stickers.to_date >= 1730581200
OR cscart_ab__stickers.to_date = 0
)
)
AND cscart_ab__stickers.sticker_id IN (0)
AND cscart_ab__stickers.display_on_detailed_pages != "not_display"
AND (
cscart_ab__stickers.usergroup_ids = ''
OR FIND_IN_SET(
0, cscart_ab__stickers.usergroup_ids
)
OR FIND_IN_SET(
1, cscart_ab__stickers.usergroup_ids
)
)
ORDER BY
cscart_ab__stickers.position asc