$sql = "SELECT COUNT(*) AS `count` FROM `products` AS `Product` INNER JOIN `attribute_values` AS `av0` ON (((`Product`.`id`=`av0`.`product_id`) AND (`av0`.`attribute_id`='333') AND (`av0`.`value`='мишки' OR `av0`.`value`='мышки' OR `av0`.`value`='ежики' OR `av0`.`value`='змейки' OR `av0`.`value`='пингвины' OR `av0`.`value`='собачки' OR `av0`.`value`='черепашки' OR `av0`.`value`='гусь'))) INNER JOIN `attribute_values` AS `av1` ON (((`Product`.`id`=`av1`.`product_id`) AND (`av1`.`attribute_id`='70') AND (`av1`.`value`='my little pony'))) LEFT JOIN `brands` AS `Brand` ON (`Product`.`brand_id` = `Brand`.`id`) LEFT JOIN `promotions` AS `Promotion` ON (`Product`.`promotion_id` = `Promotion`.`id`) WHERE `Product`.`category_id` = 568 AND `Product`.`kolvo` > 0 AND `Product`.`brand_id` = 43"
$params = array()
$prepareOptions = array()
$query = PDOStatement
PDOStatement::$queryString = "SELECT COUNT(*) AS `count` FROM `products` AS `Product` INNER JOIN `attribute_values` AS `av0` ON (((`Product`.`id`=`av0`.`product_id`) AND (`av0`.`attribute_id`='333') AND (`av0`.`value`='мишки' OR `av0`.`value`='мышки' OR `av0`.`value`='ежики' OR `av0`.`value`='змейки' OR `av0`.`value`='пингвины' OR `av0`.`value`='собачки' OR `av0`.`value`='черепашки' OR `av0`.`value`='гусь'))) INNER JOIN `attribute_values` AS `av1` ON (((`Product`.`id`=`av1`.`product_id`) AND (`av1`.`attribute_id`='70') AND (`av1`.`value`='my little pony'))) LEFT JOIN `brands` AS `Brand` ON (`Product`.`brand_id` = `Brand`.`id`) LEFT JOIN `promotions` AS `Promotion` ON (`Product`.`promotion_id` = `Promotion`.`id`) WHERE `Product`.`category_id` = 568 AND `Product`.`kolvo` > 0 AND `Product`.`brand_id` = 43"
PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 436
DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 403
DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 647
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1040
Model::find() - CORE/Cake/Model/Model.php, line 2463
CategoriesController::v() - APP/Controller/CategoriesController.php, line 676
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 475
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 106
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 88
[main] - APP/webroot/index.php, line 117
Warning: Illegal string offset 'file' in /var/www/miramida.com.ua/lib/Cake/Utility/Debugger.php on line 653
Warning: Illegal string offset 'line' in /var/www/miramida.com.ua/lib/Cake/Utility/Debugger.php on line 653
Warning: A non-numeric value encountered in /var/www/miramida.com.ua/lib/Cake/Utility/Debugger.php on line 653
Warning (2): PDOStatement::execute() [pdostatement.execute]: Error reading result set's header [CORE/Cake/Model/Datasource/DboSource.php, line 436]
$sql = "SELECT COUNT(*) AS `count` FROM `products` AS `Product` INNER JOIN `attribute_values` AS `av0` ON (((`Product`.`id`=`av0`.`product_id`) AND (`av0`.`attribute_id`='333') AND (`av0`.`value`='мишки' OR `av0`.`value`='мышки' OR `av0`.`value`='ежики' OR `av0`.`value`='змейки' OR `av0`.`value`='пингвины' OR `av0`.`value`='собачки' OR `av0`.`value`='черепашки' OR `av0`.`value`='гусь'))) INNER JOIN `attribute_values` AS `av1` ON (((`Product`.`id`=`av1`.`product_id`) AND (`av1`.`attribute_id`='70') AND (`av1`.`value`='my little pony'))) LEFT JOIN `brands` AS `Brand` ON (`Product`.`brand_id` = `Brand`.`id`) LEFT JOIN `promotions` AS `Promotion` ON (`Product`.`promotion_id` = `Promotion`.`id`) WHERE `Product`.`category_id` = 568 AND `Product`.`kolvo` > 0 AND `Product`.`brand_id` = 43"
$params = array()
$prepareOptions = array()
$query = PDOStatement
PDOStatement::$queryString = "SELECT COUNT(*) AS `count` FROM `products` AS `Product` INNER JOIN `attribute_values` AS `av0` ON (((`Product`.`id`=`av0`.`product_id`) AND (`av0`.`attribute_id`='333') AND (`av0`.`value`='мишки' OR `av0`.`value`='мышки' OR `av0`.`value`='ежики' OR `av0`.`value`='змейки' OR `av0`.`value`='пингвины' OR `av0`.`value`='собачки' OR `av0`.`value`='черепашки' OR `av0`.`value`='гусь'))) INNER JOIN `attribute_values` AS `av1` ON (((`Product`.`id`=`av1`.`product_id`) AND (`av1`.`attribute_id`='70') AND (`av1`.`value`='my little pony'))) LEFT JOIN `brands` AS `Brand` ON (`Product`.`brand_id` = `Brand`.`id`) LEFT JOIN `promotions` AS `Promotion` ON (`Product`.`promotion_id` = `Promotion`.`id`) WHERE `Product`.`category_id` = 568 AND `Product`.`kolvo` > 0 AND `Product`.`brand_id` = 43"
PDOStatement::execute() - [internal], line ??
DboSource::_execute() - CORE/Cake/Model/Datasource/DboSource.php, line 436
DboSource::execute() - CORE/Cake/Model/Datasource/DboSource.php, line 403
DboSource::fetchAll() - CORE/Cake/Model/Datasource/DboSource.php, line 647
DboSource::read() - CORE/Cake/Model/Datasource/DboSource.php, line 1040
Model::find() - CORE/Cake/Model/Model.php, line 2463
CategoriesController::v() - APP/Controller/CategoriesController.php, line 676
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 475
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 106
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 88
[main] - APP/webroot/index.php, line 117
Database Error
Error:
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
SQL Query:
SELECT COUNT(*) AS `count` FROM `products` AS `Product` INNER JOIN `attribute_values` AS `av0` ON (((`Product`.`id`=`av0`.`product_id`) AND (`av0`.`attribute_id`='333') AND (`av0`.`value`='мишки' OR `av0`.`value`='мышки' OR `av0`.`value`='ежики' OR `av0`.`value`='змейки' OR `av0`.`value`='пингвины' OR `av0`.`value`='собачки' OR `av0`.`value`='черепашки' OR `av0`.`value`='гусь'))) INNER JOIN `attribute_values` AS `av1` ON (((`Product`.`id`=`av1`.`product_id`) AND (`av1`.`attribute_id`='70') AND (`av1`.`value`='my little pony'))) LEFT JOIN `brands` AS `Brand` ON (`Product`.`brand_id` = `Brand`.`id`) LEFT JOIN `promotions` AS `Promotion` ON (`Product`.`promotion_id` = `Promotion`.`id`) WHERE `Product`.`category_id` = 568 AND `Product`.`kolvo` > 0 AND `Product`.`brand_id` = 43
Notice:
If you want to customize this error message, create app/View/Errors/pdo_error.ctp