-

Select gm.gallery_id,gm.gallery_name,gm.gallery_name_home,gm.gallery_url,gm.gallery_story_label,gm.gallery_description,gm.gallery_keywords,gm.gallery_tags,category_id,(select cm.category_master_name from category_master cm where cm.category_master_id=gm.category_id and cm.active='Y') as category_name,sub_category_id,(select scm.sub_category_master_name from sub_category_master scm where scm.sub_category_master_id=gm.sub_category_id and scm.active='Y') as sub_category_name,gm.gallery_o_tags,gm.gallery_date,gm.gallery_time_r,gm.gallery_date1,gm.gallery_time,gm.gallery_epoch,gm.gallery_image,gm.gallery_image1,gm.gallery_image2,gm.gallery_image_caption,gm.gallery_author from gallery_master as gm where gm.gallery_id=14653 and gm.active='Y'

Error