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 'a.images.teaser '' OR Pages.Path like 'includes/site/js/' a.images.teaser '/')' at line 1