Query is:select * from link_page where (heading='video-gallery' or friendly_url='video-gallery') and pagehead='m' and status='active'