Error in query: update blogs set most_viewed = most_viewed + 1 where id = cant-sleep-the-basics-of-coping-with-insomnia. 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 '-insomnia' at line 1