shot-button

-

(select vm.video_id as id,vm.video_name_home as home_name,vm.video_description as short_description,vm.video_url as page_url,vm.video_image as image1,vm.video_image1 as image2,vm.video_date1 as date_time,vm.video_story_label as story_label,vm.video_localities as location,NULL as image_caption,(select category_master_name from category_master where category_master_id=vm.category_id) as category_name,(select sub_category_master_name from sub_category_master where sub_category_master_id=vm.sub_category_id) as sub_category_name,NULL as author1_name,NULL as author1_url,NULL as author2_name,NULL as author2_url,'video' as page,video_epoch as epoch from video_master vm where vm.category_id=(select category_master_id from category_master where category_master_name='Entertainment') and (vm.video_date <='2024-04-20' and vm.video_epoch<=1713585148) and vm.active='Y' order by vm.video_epoch desc limit 0,5) UNION ALL(select gm.gallery_id as id,gm.gallery_name_home as home_name,gm.gallery_description as short_description,gm.gallery_url as page_url,gm.gallery_image as image1,gm.gallery_image1 as image2,gm.gallery_date1 as date_time,gm.gallery_story_label as story_label,gm.gallery_location as location,gm.gallery_image_caption as image_caption,(select category_master_name from category_master where category_master_id=gm.category_id) as category_name,(select sub_category_master_name from sub_category_master where sub_category_master_id=gm.sub_category_id) as sub_category_name,gm.gallery_author as author1_name,CONCAT(LOWER(gm.gallery_author),'-',(select author_id from author_master where author_name=gm.gallery_author and active='Y' order by author_id desc limit 1)) as author1_url,NULL as author2_name,NULL as author2_url,'photo' as page,gallery_epoch as epoch from gallery_master gm where gm.category_id=(select category_master_id from category_master where category_master_name='Entertainment') and (gm.gallery_date <='2024-04-20' and gm.gallery_epoch<=1713585148) and gm.gallery_id NOT IN('100309', '100299') and gm.active='Y' order by gm.gallery_epoch desc limit 0,5)

Error