SELECT * FROM Sito_widget as a, Sito_widget_pos as b WHERE a.IdPos=b.IdPos AND Stato = 1 AND b.Posizione like 'Info' and (Wher = 1 OR ( Wher = 2 AND WherParams like '%"9"%' ) OR ( Wher = 3 AND WherParams NOT like '%"9"%' ))