SELECT
tmall_banners.banner_id,
tmall_banners.status,
tmall_banner_descriptions.banner,
tmall_banners.type,
tmall_banners.target,
tmall_banners.localization,
tmall_banners.timestamp,
tmall_banner_descriptions.description,
tmall_banner_descriptions.url,
tmall_banner_images.banner_image_id,
tmall_banners.group_id,
tmall_abt__ut2_banner_images.abt__ut2_banner_image_id,
tmall_banners.abt__ut2_usergroup_ids,
tmall_banners.abt__ut2_use_avail_period,
tmall_banners.abt__ut2_avail_from,
tmall_banners.abt__ut2_avail_till,
tmall_banners.abt__ut2_button_use,
tmall_banners.abt__ut2_button_style,
tmall_banners.abt__ut2_button_text_color,
tmall_banners.abt__ut2_button_text_color_use,
tmall_banners.abt__ut2_button_color,
tmall_banners.abt__ut2_button_color_use,
tmall_banners.abt__ut2_title_color,
tmall_banners.abt__ut2_title_color_use,
tmall_banners.abt__ut2_title_font_size,
tmall_banners.abt__ut2_title_font_weight,
tmall_banners.abt__ut2_title_tag,
tmall_banners.abt__ut2_background_image_size,
tmall_banners.abt__ut2_image_v_position,
tmall_banners.abt__ut2_image_h_position,
tmall_banners.abt__ut2_background_v_position,
tmall_banners.abt__ut2_background_h_position,
tmall_banners.abt__ut2_title_shadow,
tmall_banners.abt__ut2_description_font_size,
tmall_banners.abt__ut2_description_color,
tmall_banners.abt__ut2_description_color_use,
tmall_banners.abt__ut2_description_bg_color,
tmall_banners.abt__ut2_description_bg_color_use,
tmall_banners.abt__ut2_object,
tmall_banners.abt__ut2_background_color,
tmall_banners.abt__ut2_background_color_use,
tmall_banners.abt__ut2_class,
tmall_banners.abt__ut2_color_scheme,
tmall_banners.abt__ut2_content_valign,
tmall_banners.abt__ut2_content_align,
tmall_banners.abt__ut2_content_full_width,
tmall_banners.abt__ut2_content_bg,
tmall_banners.abt__ut2_content_bg_position,
tmall_banners.abt__ut2_content_bg_align,
tmall_banners.abt__ut2_content_bg_opacity,
tmall_banners.abt__ut2_content_bg_color,
tmall_banners.abt__ut2_content_bg_color_use,
tmall_banners.abt__ut2_padding,
tmall_banners.abt__ut2_how_to_open,
tmall_banners.abt__ut2_data_type,
tmall_banners.abt__ut2_youtube_use,
tmall_banners.abt__ut2_youtube_autoplay,
tmall_banners.abt__ut2_youtube_hide_controls,
tmall_banners.abt__ut2_background_type,
tmall_banner_descriptions.abt__ut2_background_mp4_video,
tmall_banner_descriptions.abt__ut2_button_text,
tmall_banner_descriptions.abt__ut2_title,
tmall_banner_descriptions.abt__ut2_url,
tmall_banner_descriptions.abt__ut2_description,
tmall_banner_descriptions.abt__ut2_youtube_id,
tmall_banners.abt__ut2_products_template,
tmall_banners.abt__ut2_products_links_thumb_columns,
tmall_banners.abt__ut2_products_links_thumb_rows,
tmall_banners.abt__ut2_products_small_items_columns,
tmall_banners.abt__ut2_products_small_items_rows,
tmall_banners.abt__ut2_products_grid_columns,
tmall_banners.abt__ut2_products_list,
tmall_banners.abt__ut2_tablet_use,
tmall_banners.abt__ut2_tablet_content_valign,
tmall_banners.abt__ut2_tablet_content_valign_use_own,
tmall_banners.abt__ut2_tablet_content_align,
tmall_banners.abt__ut2_tablet_content_align_use_own,
tmall_banners.abt__ut2_tablet_padding,
tmall_banners.abt__ut2_tablet_padding_use_own,
tmall_banners.abt__ut2_tablet_content_full_width,
tmall_banners.abt__ut2_tablet_content_full_width_use_own,
tmall_banner_descriptions.abt__ut2_tablet_title,
tmall_banner_descriptions.abt__ut2_tablet_title_use_own,
tmall_banners.abt__ut2_tablet_title_font_size,
tmall_banners.abt__ut2_tablet_title_font_size_use_own,
tmall_banners.abt__ut2_tablet_title_shadow,
tmall_banners.abt__ut2_tablet_title_shadow_use_own,
tmall_banner_descriptions.abt__ut2_tablet_description,
tmall_banner_descriptions.abt__ut2_tablet_description_use_own,
tmall_banners.abt__ut2_tablet_description_font_size,
tmall_banners.abt__ut2_tablet_description_font_size_use_own,
tmall_banners.abt__ut2_tablet_main_image_use_own,
tmall_banners.abt__ut2_tablet_background_type,
tmall_banners.abt__ut2_tablet_background_type_use_own,
tmall_banner_descriptions.abt__ut2_tablet_background_mp4_video,
tmall_banner_descriptions.abt__ut2_tablet_background_mp4_video_use_own,
tmall_banners.abt__ut2_tablet_background_image_use_own,
tmall_banners.abt__ut2_tablet_background_image_size,
tmall_banners.abt__ut2_tablet_background_image_size_use_own,
tmall_banners.abt__ut2_tablet_image_v_position,
tmall_banners.abt__ut2_tablet_image_v_position_use_own,
tmall_banners.abt__ut2_tablet_image_h_position,
tmall_banners.abt__ut2_tablet_image_h_position_use_own,
tmall_banners.abt__ut2_tablet_background_v_position,
tmall_banners.abt__ut2_tablet_background_v_position_use_own,
tmall_banners.abt__ut2_tablet_background_h_position,
tmall_banners.abt__ut2_tablet_background_h_position_use_own,
tmall_banners.abt__ut2_tablet_button_use,
tmall_banners.abt__ut2_tablet_button_use_use_own,
tmall_banner_descriptions.abt__ut2_tablet_button_text,
tmall_banner_descriptions.abt__ut2_tablet_button_text_use_own,
tmall_banners.abt__ut2_tablet_content_bg,
tmall_banners.abt__ut2_tablet_content_bg_use_own,
tmall_banners.abt__ut2_tablet_content_bg_position,
tmall_banners.abt__ut2_tablet_content_bg_position_use_own,
tmall_banners.abt__ut2_tablet_content_bg_align,
tmall_banners.abt__ut2_tablet_content_bg_align_use_own,
tmall_banners.abt__ut2_tablet_content_bg_opacity,
tmall_banners.abt__ut2_tablet_content_bg_opacity_use_own,
tmall_banners.abt__ut2_tablet_content_bg_color,
tmall_banners.abt__ut2_tablet_content_bg_color_use_own,
tmall_banners.abt__ut2_tablet_content_bg_color_use,
tmall_banners.abt__ut2_tablet_content_bg_color_use_use_own,
tmall_banners.abt__ut2_tablet_button_text_color,
tmall_banners.abt__ut2_tablet_button_text_color_use_own,
tmall_banners.abt__ut2_tablet_button_text_color_use,
tmall_banners.abt__ut2_tablet_button_text_color_use_use_own,
tmall_banners.abt__ut2_tablet_button_color,
tmall_banners.abt__ut2_tablet_button_color_use_own,
tmall_banners.abt__ut2_tablet_button_color_use,
tmall_banners.abt__ut2_tablet_button_color_use_use_own,
tmall_banners.abt__ut2_mobile_use,
tmall_banners.abt__ut2_mobile_content_valign,
tmall_banners.abt__ut2_mobile_content_valign_use_own,
tmall_banners.abt__ut2_mobile_content_align,
tmall_banners.abt__ut2_mobile_content_align_use_own,
tmall_banners.abt__ut2_mobile_padding,
tmall_banners.abt__ut2_mobile_padding_use_own,
tmall_banners.abt__ut2_mobile_content_full_width,
tmall_banners.abt__ut2_mobile_content_full_width_use_own,
tmall_banner_descriptions.abt__ut2_mobile_title,
tmall_banner_descriptions.abt__ut2_mobile_title_use_own,
tmall_banners.abt__ut2_mobile_title_font_size,
tmall_banners.abt__ut2_mobile_title_font_size_use_own,
tmall_banners.abt__ut2_mobile_title_shadow,
tmall_banners.abt__ut2_mobile_title_shadow_use_own,
tmall_banner_descriptions.abt__ut2_mobile_description,
tmall_banner_descriptions.abt__ut2_mobile_description_use_own,
tmall_banners.abt__ut2_mobile_description_font_size,
tmall_banners.abt__ut2_mobile_description_font_size_use_own,
tmall_banners.abt__ut2_mobile_main_image_use_own,
tmall_banners.abt__ut2_mobile_background_type,
tmall_banners.abt__ut2_mobile_background_type_use_own,
tmall_banner_descriptions.abt__ut2_mobile_background_mp4_video,
tmall_banner_descriptions.abt__ut2_mobile_background_mp4_video_use_own,
tmall_banners.abt__ut2_mobile_background_image_use_own,
tmall_banners.abt__ut2_mobile_background_image_size,
tmall_banners.abt__ut2_mobile_background_image_size_use_own,
tmall_banners.abt__ut2_mobile_image_v_position,
tmall_banners.abt__ut2_mobile_image_v_position_use_own,
tmall_banners.abt__ut2_mobile_image_h_position,
tmall_banners.abt__ut2_mobile_image_h_position_use_own,
tmall_banners.abt__ut2_mobile_background_v_position,
tmall_banners.abt__ut2_mobile_background_v_position_use_own,
tmall_banners.abt__ut2_mobile_background_h_position,
tmall_banners.abt__ut2_mobile_background_h_position_use_own,
tmall_banners.abt__ut2_mobile_button_use,
tmall_banners.abt__ut2_mobile_button_use_use_own,
tmall_banner_descriptions.abt__ut2_mobile_button_text,
tmall_banner_descriptions.abt__ut2_mobile_button_text_use_own,
tmall_banners.abt__ut2_mobile_content_bg,
tmall_banners.abt__ut2_mobile_content_bg_use_own,
tmall_banners.abt__ut2_mobile_content_bg_position,
tmall_banners.abt__ut2_mobile_content_bg_position_use_own,
tmall_banners.abt__ut2_mobile_content_bg_align,
tmall_banners.abt__ut2_mobile_content_bg_align_use_own,
tmall_banners.abt__ut2_mobile_content_bg_opacity,
tmall_banners.abt__ut2_mobile_content_bg_opacity_use_own,
tmall_banners.abt__ut2_mobile_content_bg_color,
tmall_banners.abt__ut2_mobile_content_bg_color_use_own,
tmall_banners.abt__ut2_mobile_content_bg_color_use,
tmall_banners.abt__ut2_mobile_content_bg_color_use_use_own,
tmall_banners.abt__ut2_mobile_button_text_color,
tmall_banners.abt__ut2_mobile_button_text_color_use_own,
tmall_banners.abt__ut2_mobile_button_text_color_use,
tmall_banners.abt__ut2_mobile_button_text_color_use_use_own,
tmall_banners.abt__ut2_mobile_button_color,
tmall_banners.abt__ut2_mobile_button_color_use_own,
tmall_banners.abt__ut2_mobile_button_color_use,
tmall_banners.abt__ut2_mobile_button_color_use_use_own
FROM
tmall_banners
LEFT JOIN tmall_banner_descriptions ON tmall_banner_descriptions.banner_id = tmall_banners.banner_id
AND tmall_banner_descriptions.lang_code = 'en'
LEFT JOIN tmall_banner_images ON tmall_banner_images.banner_id = tmall_banners.banner_id
AND tmall_banner_images.lang_code = 'en'
LEFT JOIN tmall_abt__ut2_banner_images ON tmall_abt__ut2_banner_images.banner_id = tmall_banners.banner_id
AND tmall_abt__ut2_banner_images.lang_code = 'en'
WHERE
tmall_banners.banner_id = 53
AND tmall_banners.status IN ('A', 'H')