Fatal error: Uncaught PDOException: 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 P.type_id = 2 AND NOW() BETWEEN P.startDT AND P.endDT AND P.status = 2 ...' at line 17 in /var/www/vhosts/shared/app_backend/prod/service_v2/utils.php:46
Stack trace:
#0 /var/www/vhosts/shared/app_backend/prod/service_v2/utils.php(46): PDOStatement->execute()
#1 /var/www/vhosts/shared/app_backend/prod/service_v2/utils.php(206): execSqlQuery()
#2 /var/www/vhosts/shared/app_backend/prod/service_v2/CB_Products.php(481): execMemQuery()
#3 /var/www/vhosts/cashyo.co.il/httpdocs/front/Classes/views/Retailer.php(145): CB_Products::getProductsForRetailers()
#4 /var/www/vhosts/cashyo.co.il/httpdocs/front/Classes/views/Retailer.php(21): Retailer->getSimilarCoupons()
#5 /var/www/vhosts/cashyo.co.il/httpdocs/front/Classes/mainView.php(175): Retailer->getContent()
#6 /var/www/vhosts/cashyo.co.il/httpdocs/front/Classes/views/Folder.php(30): mainView->renderPage()
#7 /var/www/vhosts/cashyo.co.il/httpdocs/front/Classes/mainView.php(175): Folder->getContent()
#8 /var/www/vhosts/cashyo.co.il/httpdocs/front/Classes/mainView.php(111): mainView->renderPage()
#9 /var/www/vhosts/cashyo.co.il/httpdocs/front/index.php(31): mainView->renderLayout()
#10 /var/www/vhosts/cashyo.co.il/httpdocs/front/index.php(79): renderCurrentPage()
#11 {main}
thrown in /var/www/vhosts/shared/app_backend/prod/service_v2/utils.php on line 46