Creating getSponsor SQLQuery