SELECT * FROM news.cs, news.cs_opt WHERE id_ap = 'YYIUCN' AND id_lingua = 'it' AND (rs IS NULL or rs = '0') AND (scadenza IS NULL or scadenza = '') AND `cs`.`id`=`cs_opt`.`id_cs` UNION SELECT * FROM news.cs, news.cs_opt WHERE id_ap = 'YYFEDERP' AND id_lingua = 'it' AND (rs IS NULL or rs = '0') AND (scadenza IS NULL or scadenza = '') AND `cs`.`id`=`cs_opt`.`id_cs` AND (`cs_opt`.`su1`='1' OR `cs_opt`.`su2`='1' OR `cs_opt`.`su3`='1' OR `cs_opt`.`su4`='1' OR `cs_opt`.`su5`='1' OR `cs_opt`.`su6`='1' OR `cs_opt`.`su7`='1')ORDER BY data DESC, id DESC, titolo ASC LIMIT -10, 10