#0 debug(__BAD QUERY__, SELECT sale.id FROM sale2category JOIN sale ON sale.id=sale2category.sale_id WHERE sale.coupon_code='' AND sale2category.category_id=) called at [/home/nakedtru/public_html/app/classes/sql.class.php:68]
#1 Sql->error(SELECT sale.id FROM sale2category JOIN sale ON sale.id=sale2category.sale_id WHERE sale.coupon_code='' AND sale2category.category_id=, MDB2 Error: syntax error, -2) called at [/home/nakedtru/public_html/app/classes/sql.class.php:91]
#2 Sql->select(SELECT sale.id FROM sale2category JOIN sale ON sale.id=sale2category.sale_id WHERE sale.coupon_code='' AND sale2category.category_id=) called at [/home/nakedtru/public_html/app/classes/sale.class.php:163]
#3 Sale->getSalesByCategory() called at [/home/nakedtru/public_html/app/lib/functions.php:1118]
#4 calculateActualPrice(1) called at [/home/nakedtru/public_html/app/modules/product.php:177]
#5 m_product->view() called at [/home/nakedtru/public_html/app/modules/product.php:49]
#6 m_product->product() called at [/home/nakedtru/public_html/app/lib/switchboard.php:142]
#7 switchboard() called at [/home/nakedtru/public_html/www/index.php:26]
>> (..) >>
__BAD QUERY__
SELECT sale.id FROM sale2category JOIN sale ON sale.id=sale2category.sale_id WHERE sale.coupon_code='' AND sale2category.category_id=error(SELECT sale.id FROM sale2category JOIN sale ON sale.id=sale2category.sale_id WHERE sale.coupon_code='' AND sale2category.category_id=, MDB2 Error: syntax error, -2) called at [/home/nakedtru/public_html/app/classes/sql.class.php:91]
#1 Sql->select(SELECT sale.id FROM sale2category JOIN sale ON sale.id=sale2category.sale_id WHERE sale.coupon_code='' AND sale2category.category_id=) called at [/home/nakedtru/public_html/app/classes/sale.class.php:163]
#2 Sale->getSalesByCategory() called at [/home/nakedtru/public_html/app/lib/functions.php:1118]
#3 calculateActualPrice(1) called at [/home/nakedtru/public_html/app/modules/product.php:177]
#4 m_product->view() called at [/home/nakedtru/public_html/app/modules/product.php:49]
#5 m_product->product() called at [/home/nakedtru/public_html/app/lib/switchboard.php:142]
#6 switchboard() called at [/home/nakedtru/public_html/www/index.php:26]
#0 debug(__BAD QUERY__, SELECT sale.id FROM sale2brand JOIN sale ON sale.id=sale2brand.sale_id WHERE sale.coupon_code='' AND sale2brand.brand_id=) called at [/home/nakedtru/public_html/app/classes/sql.class.php:68]
#1 Sql->error(SELECT sale.id FROM sale2brand JOIN sale ON sale.id=sale2brand.sale_id WHERE sale.coupon_code='' AND sale2brand.brand_id=, MDB2 Error: syntax error, -2) called at [/home/nakedtru/public_html/app/classes/sql.class.php:91]
#2 Sql->select(SELECT sale.id FROM sale2brand JOIN sale ON sale.id=sale2brand.sale_id WHERE sale.coupon_code='' AND sale2brand.brand_id=) called at [/home/nakedtru/public_html/app/classes/sale.class.php:172]
#3 Sale->getSalesByBrand() called at [/home/nakedtru/public_html/app/lib/functions.php:1119]
#4 calculateActualPrice(1) called at [/home/nakedtru/public_html/app/modules/product.php:177]
#5 m_product->view() called at [/home/nakedtru/public_html/app/modules/product.php:49]
#6 m_product->product() called at [/home/nakedtru/public_html/app/lib/switchboard.php:142]
#7 switchboard() called at [/home/nakedtru/public_html/www/index.php:26]
>> (..) >>
__BAD QUERY__
SELECT sale.id FROM sale2brand JOIN sale ON sale.id=sale2brand.sale_id WHERE sale.coupon_code='' AND sale2brand.brand_id=error(SELECT sale.id FROM sale2brand JOIN sale ON sale.id=sale2brand.sale_id WHERE sale.coupon_code='' AND sale2brand.brand_id=, MDB2 Error: syntax error, -2) called at [/home/nakedtru/public_html/app/classes/sql.class.php:91]
#1 Sql->select(SELECT sale.id FROM sale2brand JOIN sale ON sale.id=sale2brand.sale_id WHERE sale.coupon_code='' AND sale2brand.brand_id=) called at [/home/nakedtru/public_html/app/classes/sale.class.php:172]
#2 Sale->getSalesByBrand() called at [/home/nakedtru/public_html/app/lib/functions.php:1119]
#3 calculateActualPrice(1) called at [/home/nakedtru/public_html/app/modules/product.php:177]
#4 m_product->view() called at [/home/nakedtru/public_html/app/modules/product.php:49]
#5 m_product->product() called at [/home/nakedtru/public_html/app/lib/switchboard.php:142]
#6 switchboard() called at [/home/nakedtru/public_html/www/index.php:26]
Naked Truck