>>>>>>>SELECT * FROM noticiasp where id_noticias= and activado = 'on'
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 activado = 'on'' at line 1<<<<<<<<