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 status = 1 ORDER BY id DESC LIMIT 5' at line 3 in /home/sattecom/public_html/models/db/PDOQuery.php:46
Stack trace:
#0 /home/sattecom/public_html/models/db/PDOQuery.php(46): PDOStatement->execute(Array)
#1 /home/sattecom/public_html/models/product-photos/ProductPhotosData.php(23): PDOQuery->fetchAll('\r\n\t\t\t\tSELECT * ...')
#2 /home/sattecom/public_html/controllers/site/SiteProductsController.php(33): ProductPhotosData->readPhotosByProductId(NULL, 'LIMIT 5')
#3 /home/sattecom/public_html/index.php(130): SiteProductsController->details(Array)
#4 {main}
thrown in /home/sattecom/public_html/models/db/PDOQuery.php on line 46