"FROM " +
"resources " +
"WHERE " +
"id = " + id;
SQLiteStatement st = Db.getInstance().query(sql);
st.step();
if(st.hasRow())
{
Resource resource = new Resource();
resource.id = st.columnInt(0);
resource.type = st.columnString(1);
resource.name = st.columnString(2);
resource.config = Resource.unserialize(st.columnBlob(3));
return resource;
}
else
{