Select COD_INF,IMG,IMG_BAN,URL,TIP,TIT,DES,TIT_EXT,NEW_TIT,NEW_DES,URL_PAG_NEW from INF where REC_VAL<>0 and HOM<>0 and TIP='BGG' and (COD_LAN='IT' OR COD_LAN='XX' or COD_LAN is NULL or COD_LAN='') and (DAT_SCA is null or DAT_SCA > '9/12/2024') AND RGH_MSK<>'00000010' order by DAT_RIF DESC