select * from gallery where gid = 4790 order by dOrder