You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') and (title2 like '30 Rock%') and (eos >= ) and (episode <=) AND fromm != 'h' at line 1 , x0 Greek Subtitles | TvSubtitles.gr