SELECT manager.imgid FROM manager, admin, reply WHERE reply.pid = admin.id AND admin.did=manager.id AND xxxxxxx