select id from editConference where ConfUrl = 'petroleum.conferenceseries.com/abstract/2017/asphaltene-and-wax-precipitation-common-principles-of-structuring' and up=1 ORDER BY id ASC select id from editConference where ConfUrl = 'petroleum.conferenceseries.com/2017' OR ConfUrl= 'petroleum.conferenceseries.com' and up = '1' ORDER BY id ASC