An uncaught Exception was encountered

Type: mysqli_sql_exception

Message: 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 '' at line 1

Filename: /home/benzershoes/public_html/system/database/drivers/mysqli/mysqli_driver.php

Line Number: 307

Backtrace:

File: /home/benzershoes/public_html/application/models/Db_qry.php
Line: 86
Function: query

File: /home/benzershoes/public_html/application/views/product_detail.php
Line: 5
Function: getrecordbyidrow

File: /home/benzershoes/public_html/application/views/layout/layout.php
Line: 7
Function: view

File: /home/benzershoes/public_html/application/controllers/Product.php
Line: 826
Function: view

File: /home/benzershoes/public_html/application/controllers/Product.php
Line: 44
Function: product_detail

File: /home/benzershoes/public_html/index.php
Line: 316
Function: require_once