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 `aprobado` LIKE '1' AND `sitioweb` like 'barra-navidad.com' ORDER BY fechaag' at line 1