select * from gallery where gid = 4797 order by dOrder