"""
Exception caught: 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 '-10,10' at line 11 (SQL: SELECT img.imagename,m.cover_photo,m.movie_year,m.urlname,sn.data,m.img_folder,m.moviename,m.movieid,YEAR(m.datetime) AS year,namechange,m.releasedate,year(m.releasedate) AS yr\n
\t\t\t\t\tFROM moviemaster m\n
\t\t\t\t\tLeft JOIN synopsis sn on sn.movieid=m.movieid and sn.ispublished =1\n
\t\t\t\t\tLEFT JOIN movieimagemaster img on img.movieid=m.movieid and img.image_type='pos'\n
\t\t\t\t\tWHERE CASE \n
\t\t\t\t\tWHEN (m.releasedate='0000-00-00 00:00:00' OR m.releasedate is NULL) THEN \n
\t\t\t\t\tYEAR(m.movie_year)=2027 \n
\t\t\t\t\tELSE \n
\t\t\t\t\tYEAR(m.releasedate)=2027 END\n
                    and m.redirectto=0 and m.language in ('hindi')\n
\t\t\t\t\tGROUP BY m.movieid ORDER BY m.moviename LIMIT -10,10)
"""