object(PDOException)#41 (8) { ["message":protected]=> string(284) "SQLSTATE[42000]: Syntax error or access violation: 1064 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 ((sb.startdate <= now() and sb.enddate >= now()) or (sb.startdate <= now() a' at line 1" ["string":"Exception":private]=> string(0) "" ["code":protected]=> string(5) "42000" ["file":protected]=> string(45) "/data/home/happy-club.tv/lib/storageClass.php" ["line":protected]=> int(131) ["trace":"Exception":private]=> array(3) { [0]=> array(6) { ["file"]=> string(45) "/data/home/happy-club.tv/lib/storageClass.php" ["line"]=> int(131) ["function"]=> string(7) "execute" ["class"]=> string(12) "PDOStatement" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [1]=> array(6) { ["file"]=> string(47) "/data/home/happy-club.tv/lib/infoMovieClass.php" ["line"]=> int(44) ["function"]=> string(6) "search" ["class"]=> string(7) "storage" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(301) "SELECT sb.*, mc.category category, mc.icon icon FROM hc_movie sb left outer join hc_movie_category mc on sb.category = mc.sid WHERE sb.active = 1 and sb.cstatus = 10 and sb.sid = and ((sb.startdate <= now() and sb.enddate >= now()) or (sb.startdate <= now() and sb.enddate = '0000-00-00 00:00:00')) " } } [2]=> array(6) { ["file"]=> string(58) "/data/home/happy-club.tv/www/htdocs/movie/detail/index.php" ["line"]=> int(29) ["function"]=> string(8) "getMovie" ["class"]=> string(9) "infoMovie" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> NULL } } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "42000" [1]=> int(1064) [2]=> string(228) "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 ((sb.startdate <= now() and sb.enddate >= now()) or (sb.startdate <= now() a' at line 1" } }
Fatal error: Uncaught Error: Call to a member function fetchObject() on null in /data/home/happy-club.tv/lib/storageClass.php:246 Stack trace: #0 /data/home/happy-club.tv/lib/infoMovieClass.php(44): storage->getObjList(NULL) #1 /data/home/happy-club.tv/www/htdocs/movie/detail/index.php(29): infoMovie->getMovie(NULL) #2 {main} thrown in /data/home/happy-club.tv/lib/storageClass.php on line 246