select * from gallery where gid = 4799 order by dOrder