Error: update ads set count = 1 where id=1468751785-Untitled-0.JPG

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 'JPG' at line 3