Erro no SQL: 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 'and data <= '2014-04-23 09:40:33' and status = 1 order by data desc limit 40,10' at line 1

SQL:

select id_noticia from site_noticias where site_noticias.id_categoria = and data <= '2014-04-23 09:40:33' and status = 1 order by data desc limit 40,10