File: /var/www/src/modules/store/controllers/DefaultController.php / Line: 846

yii\db\Exception#1
(
    [
errorInfo] => [
        
=> '42000'
        
=> 1064
        2 
=> '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 \'AND main_product_id = 82 AND store_section_id = 3822 AND group_id = 1 ORDER BY `\' at line 1'
    
]
    [*:
message] => 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 \'AND main_product_id = 82 AND store_section_id = 3822 AND group_id = 1 ORDER BY `\' at line 1
The SQL being executed was: SELECT * FROM `store_products` WHERE store_id =  AND main_product_id = 82 AND store_section_id = 3822 AND group_id = 1 ORDER BY `id`'
    
[Exception:string] => ''
    
[*:code] => '42000'
    
[*:file] => '/var/www/vendor/yiisoft/yii2/db/Schema.php'
    
[*:line] => 676
    
[Exception:trace] => [
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1325
            
'function' => 'convertException'
            'class' 
=> 'yii\\db\\Schema'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1186
            
'function' => 'internalExecute'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 431
            
'function' => 'queryInternal'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Query.php'
            'line' 
=> 287
            
'function' => 'queryOne'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/ActiveQuery.php'
            'line' 
=> 325
            
'function' => 'one'
            'class' 
=> 'yii\\db\\Query'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/src/modules/store/controllers/DefaultController.php'
            'line' 
=> 807
            
'function' => 'one'
            'class' 
=> 'yii\\db\\ActiveQuery'
            'type' 
=> '->'
        
]
        
=> [
            
'function' => 'actionDetail'
            'class' 
=> 'app\\modules\\store\\controllers\\DefaultController'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/base/InlineAction.php'
            'line' 
=> 60
            
'function' => 'call_user_func_array'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/base/Controller.php'
            'line' 
=> 184
            
'function' => 'runWithParams'
            'class' 
=> 'yii\\base\\InlineAction'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/base/Module.php'
            'line' 
=> 555
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Controller'
            'type' 
=> '->'
        
]
        
10 => [
            
'file' => '/var/www/vendor/yiisoft/yii2/web/Application.php'
            'line' 
=> 103
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Module'
            'type' 
=> '->'
        
]
        
11 => [
            
'file' => '/var/www/vendor/yiisoft/yii2/base/Application.php'
            'line' 
=> 387
            
'function' => 'handleRequest'
            'class' 
=> 'yii\\web\\Application'
            'type' 
=> '->'
        
]
        
12 => [
            
'file' => '/var/www/html/index.php'
            'line' 
=> 42
            
'function' => 'run'
            'class' 
=> 'yii\\base\\Application'
            'type' 
=> '->'
        
]
    ]
    [
Exception:previous] => PDOException#2
    
(
        [*:
message] => 'SQLSTATE[42000]: Syntax error or access violation: 1064 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 \'AND main_product_id = 82 AND store_section_id = 3822 AND group_id = 1 ORDER BY `\' at line 1'
        
[Exception:string] => ''
        
[*:code] => '42000'
        
[*:file] => '/var/www/vendor/yiisoft/yii2/db/Command.php'
        
[*:line] => 1320
        
[Exception:trace] => [
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1320
                
'function' => 'execute'
                'class' 
=> 'PDOStatement'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1186
                
'function' => 'internalExecute'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 431
                
'function' => 'queryInternal'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Query.php'
                'line' 
=> 287
                
'function' => 'queryOne'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/ActiveQuery.php'
                'line' 
=> 325
                
'function' => 'one'
                'class' 
=> 'yii\\db\\Query'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/src/modules/store/controllers/DefaultController.php'
                'line' 
=> 807
                
'function' => 'one'
                'class' 
=> 'yii\\db\\ActiveQuery'
                'type' 
=> '->'
            
]
            
=> [
                
'function' => 'actionDetail'
                'class' 
=> 'app\\modules\\store\\controllers\\DefaultController'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/base/InlineAction.php'
                'line' 
=> 60
                
'function' => 'call_user_func_array'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/base/Controller.php'
                'line' 
=> 184
                
'function' => 'runWithParams'
                'class' 
=> 'yii\\base\\InlineAction'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/base/Module.php'
                'line' 
=> 555
                
'function' => 'runAction'
                'class' 
=> 'yii\\base\\Controller'
                'type' 
=> '->'
            
]
            
10 => [
                
'file' => '/var/www/vendor/yiisoft/yii2/web/Application.php'
                'line' 
=> 103
                
'function' => 'runAction'
                'class' 
=> 'yii\\base\\Module'
                'type' 
=> '->'
            
]
            
11 => [
                
'file' => '/var/www/vendor/yiisoft/yii2/base/Application.php'
                'line' 
=> 387
                
'function' => 'handleRequest'
                'class' 
=> 'yii\\web\\Application'
                'type' 
=> '->'
            
]
            
12 => [
                
'file' => '/var/www/html/index.php'
                'line' 
=> 42
                
'function' => 'run'
                'class' 
=> 'yii\\base\\Application'
                'type' 
=> '->'
            
]
        ]
        [
Exception:previous] => null
        
[errorInfo] => [
            
=> '42000'
            
=> 1064
            2 
=> '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 \'AND main_product_id = 82 AND store_section_id = 3822 AND group_id = 1 ORDER BY `\' at line 1'
        
]
    )
)