![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
22/03/2003, 16:29
|
![Avatar de kaslierx](http://static.forosdelweb.com/customavatars/avatar30533_1.gif) | | | Fecha de Ingreso: febrero-2003 Ubicación: Valencia
Mensajes: 190
Antigüedad: 22 años Puntos: 0 | |
Estoy usando esto:
SELECT COUNT(*) FROM noticias WHERE title LIKE '%one%' AND LIKE '%two%' OR subtitle LIKE '%one%' AND LIKE '%two%' OR body LIKE '%one%' AND LIKE '%two%'
Pero me da este error:
You have an error in your SQL syntax near 'LIKE '%two%' OR subtitle LIKE '%one%' AND LIKE '%two%' OR body LIKE '%one%' ' at line 1.
¿Que es lo que pasa? |