fix sql query

fix guide data-providers