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

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 = 36 AND store_section_id = 1540 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 = 36 AND store_section_id = 1540 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 = 36 AND store_section_id = 1540 AND group_id = 1 ORDER BY `id`'
    
[Exception:string] => ''
    
[*:code] => '42000'
    
[*:file] => '/var/www/vendor/yiisoft/yii2/db/Schema.php'
    
[*:line] => 678
    
[Exception:trace] => [
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1304
            
'function' => 'convertException'
            'class' 
=> 'yii\\db\\Schema'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 1165
            
'function' => 'internalExecute'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
            'line' 
=> 421
            
'function' => 'queryInternal'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/Query.php'
            'line' 
=> 285
            
'function' => 'queryOne'
            'class' 
=> 'yii\\db\\Command'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/db/ActiveQuery.php'
            'line' 
=> 304
            
'function' => 'one'
            'class' 
=> 'yii\\db\\Query'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/src/modules/store/controllers/DefaultController.php'
            'line' 
=> 747
            
'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' 
=> 57
            
'function' => 'call_user_func_array'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/base/Controller.php'
            'line' 
=> 180
            
'function' => 'runWithParams'
            'class' 
=> 'yii\\base\\InlineAction'
            'type' 
=> '->'
        
]
        
=> [
            
'file' => '/var/www/vendor/yiisoft/yii2/base/Module.php'
            'line' 
=> 528
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Controller'
            'type' 
=> '->'
        
]
        
10 => [
            
'file' => '/var/www/vendor/yiisoft/yii2/web/Application.php'
            'line' 
=> 104
            
'function' => 'runAction'
            'class' 
=> 'yii\\base\\Module'
            'type' 
=> '->'
        
]
        
11 => [
            
'file' => '/var/www/vendor/yiisoft/yii2/base/Application.php'
            'line' 
=> 392
            
'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 = 36 AND store_section_id = 1540 AND group_id = 1 ORDER BY `\' at line 1'
        
[Exception:string] => ''
        
[*:code] => '42000'
        
[*:file] => '/var/www/vendor/yiisoft/yii2/db/Command.php'
        
[*:line] => 1299
        
[Exception:trace] => [
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1299
                
'function' => 'execute'
                'class' 
=> 'PDOStatement'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 1165
                
'function' => 'internalExecute'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Command.php'
                'line' 
=> 421
                
'function' => 'queryInternal'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/Query.php'
                'line' 
=> 285
                
'function' => 'queryOne'
                'class' 
=> 'yii\\db\\Command'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/db/ActiveQuery.php'
                'line' 
=> 304
                
'function' => 'one'
                'class' 
=> 'yii\\db\\Query'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/src/modules/store/controllers/DefaultController.php'
                'line' 
=> 747
                
'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' 
=> 57
                
'function' => 'call_user_func_array'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/base/Controller.php'
                'line' 
=> 180
                
'function' => 'runWithParams'
                'class' 
=> 'yii\\base\\InlineAction'
                'type' 
=> '->'
            
]
            
=> [
                
'file' => '/var/www/vendor/yiisoft/yii2/base/Module.php'
                'line' 
=> 528
                
'function' => 'runAction'
                'class' 
=> 'yii\\base\\Controller'
                'type' 
=> '->'
            
]
            
10 => [
                
'file' => '/var/www/vendor/yiisoft/yii2/web/Application.php'
                'line' 
=> 104
                
'function' => 'runAction'
                'class' 
=> 'yii\\base\\Module'
                'type' 
=> '->'
            
]
            
11 => [
                
'file' => '/var/www/vendor/yiisoft/yii2/base/Application.php'
                'line' 
=> 392
                
'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 = 36 AND store_section_id = 1540 AND group_id = 1 ORDER BY `\' at line 1'
        
]
    )
)