SELECT * FROM geecB_contenuti WHERE ( categoria='' OR categoria IN (SELECT id FROM geec_categorie WHERE categoriaMadre = AND tipo LIKE 'categoriaArticolo') OR id IN (SELECT idContenuto FROM geec_associazioneCategorieContenuti WHERE idCategoria = ) ) AND stato LIKE 'pubblicato' AND dataPubblicazione<='2023-12-10 17-34'