fix(bannerrotation): fixed typo and broken sql queries