Notice: Undefined offset: 0 in /home/yrcokvaf/public_html/controllers/site/SiteFragrancesController.php on line 41

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 ecommerce.status = 1' at line 6 in /home/yrcokvaf/public_html/models/db/PDOQuery.php:46 Stack trace: #0 /home/yrcokvaf/public_html/models/db/PDOQuery.php(46): PDOStatement->execute(Array) #1 /home/yrcokvaf/public_html/models/fragrance-product/FragranceProductData.php(25): PDOQuery->fetchAll('\r\n\t\t\t\tSELECT fr...') #2 /home/yrcokvaf/public_html/controllers/site/SiteFragrancesController.php(44): FragranceProductData->readByFragranceId(NULL) #3 /home/yrcokvaf/public_html/index.php(151): SiteFragrancesController->details(Array) #4 {main} thrown in /home/yrcokvaf/public_html/models/db/PDOQuery.php on line 46