Select * from ex_sitemap where site_code='' and ref= '' and depth = 0 and seq < order by seq desc limit 1