select * from gallery where gid = 4788 order by dOrder