select * from gallery where gid = 4795 order by dOrder