select * from gallery where gid = 4792 order by dOrder