*build sql query for the sdss square search*

        **Key Arguments:**
            # -

        **Return:**
            - None

        .. todo::

def _build_sql_query(
            self):
        """
        *build sql query for the sdss square search*

        **Key Arguments:**
            # -

        **Return:**
            - None

        .. todo::

        """
        self.log.info('starting the ``_build_sql_query`` method')

        ra1, ra2, dec1, dec2 = self.ra1, self.ra2, self.dec1, self.dec2

        if self.galaxyType == "all":
            self.sqlQuery = u"""
                SELECT p.objiD, p.ra, p.dec, s.z as specz, s.zerr as specz_err, z.z as photoz, z.zerr as photoz_err, p.type
                    FROM PhotoObjAll p
                    LEFT JOIN SpecObjAll AS s ON s.bestobjid = p.objid
                    LEFT JOIN Photoz AS z ON z.objid = p.objid 
                    WHERE (p.ra between %(ra1)s and %(ra2)s) and (p.dec between %(dec1)s and %(dec2)s) and p.clean = 1 and p.type = 3
            """ % locals()
        elif self.galaxyType == "specz":
            self.sqlQuery = u"""
                SELECT p.objiD, p.ra, p.dec, s.z as specz, s.zerr as specz_err, p.type
                    FROM PhotoObjAll p, SpecObjAll s
                    WHERE (s.bestobjid = p.objid) and (p.ra between %(ra1)s and %(ra2)s) and (p.dec between %(dec1)s and %(dec2)s) and p.type = 3
            """ % locals()
        elif self.galaxyType == "photoz":
            self.sqlQuery = u"""
                SELECT p.objiD, p.ra, p.dec, z.z as photoz, z.zerr as photoz_err, p.type
                    FROM PhotoObjAll p, Photoz z
                    WHERE (z.objid = p.objid) and (p.ra between %(ra1)s and %(ra2)s) and (p.dec between %(dec1)s and %(dec2)s) and p.clean = 1 and p.type = 3
            """ % locals()
        elif self.galaxyType == False or not self.galaxyType:
            self.sqlQuery = u"""
                SELECT p.objiD, p.ra, p.dec, s.z as specz, s.zerr as specz_err, z.z as photoz, z.zerr as photoz_err, p.type
                    FROM PhotoObjAll p
                    LEFT JOIN SpecObjAll AS s ON s.bestobjid = p.objid
                    LEFT JOIN Photoz AS z ON z.objid = p.objid 
                    WHERE (p.ra between %(ra1)s and %(ra2)s) and (p.dec between %(dec1)s and %(dec2)s) and p.clean = 1 and (p.type = 3 or p.type = 6)
            """ % locals()

        self.sqlQuery = self.sqlQuery.strip()

        self.log.info('completed the ``_build_sql_query`` method')
        return None