pageid = ___previouspage___-1nexpageid___1pagenumberno0-select max(slno) from eg_page_article_image_master where page_id='___'