Database Error

Error Number: 1064

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 '' at line 2

select * from `fotos` where (keywords like '%%' or filename like '%%' or descricao like '%%' or location like '%%' or city like '%%' or state like '%%' or country like '%%') order by id_fotos desc limit 4200,