Gracias por el consejo, pero esto también me da error en el case.
Código:
SELECT *
FROM noticias
CASE inPublicadas
WHEN 1 THEN "WHERE not_publicada = 1"
WHEN 0 THEN "WHERE not_publicada = 0"
ELSE
END CASE
ORDER BY not_fecha
;
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CASE inPublicadas
WHEN 1 THEN "WHERE not_publicada = 1"
WHEN 0 THEN "WHERE not' at line 5
(0 ms taken)