SQLSTATE[42000]: Syntax error or access violation: 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 'Ab_Aeterno'.mkv%'' at line 6 The SQL being executed was: SELECT COUNT(*) as total FROM movies WHERE movies.is_active = 1 AND `movies`.imdb_rating >= 0 AND `movies`.title LIKE '%Lost.S06E09_'Ab_Aeterno'.mkv%'