Warning: Undefined array key "USER" in /var/www/html/app/Repositories/EstimationRepository.php on line 115

Warning: Trying to access array offset on value of type null in /var/www/html/app/Repositories/EstimationRepository.php on line 115
object(PDOException)#315 (8) { ["message":protected]=> string(283) "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 NOT em.type = 2 AND em.estimation_no = ? ORDER BY em.id' at line 17" ["string":"Exception":private]=> string(0) "" ["code":protected]=> string(5) "42000" ["file":protected]=> string(28) "/var/www/html/core/Model.php" ["line":protected]=> int(67) ["trace":"Exception":private]=> array(11) { [0]=> array(5) { ["file"]=> string(28) "/var/www/html/core/Model.php" ["line"]=> int(67) ["function"]=> string(7) "prepare" ["class"]=> string(3) "PDO" ["type"]=> string(2) "->" } [1]=> array(5) { ["file"]=> string(44) "/var/www/html/app/Models/EstimationModel.php" ["line"]=> int(2159) ["function"]=> string(7) "getData" ["class"]=> string(10) "core\Model" ["type"]=> string(2) "->" } [2]=> array(5) { ["file"]=> string(55) "/var/www/html/app/Repositories/EstimationRepository.php" ["line"]=> int(122) ["function"]=> string(28) "get_estimation_incoming_list" ["class"]=> string(26) "app\Models\EstimationModel" ["type"]=> string(2) "->" } [3]=> array(5) { ["file"]=> string(49) "/var/www/html/app/Controllers/User/Estimation.php" ["line"]=> int(102) ["function"]=> string(21) "getEstimationIncoming" ["class"]=> string(37) "app\Repositories\EstimationRepository" ["type"]=> string(2) "->" } [4]=> array(3) { ["function"]=> string(8) "incoming" ["class"]=> string(31) "app\Controllers\User\Estimation" ["type"]=> string(2) "->" } [5]=> array(3) { ["file"]=> string(91) "/var/www/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/ClassLoader/ClassLoader.php" ["line"]=> int(34) ["function"]=> string(20) "call_user_func_array" } [6]=> array(5) { ["file"]=> string(79) "/var/www/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Route/Route.php" ["line"]=> int(111) ["function"]=> string(15) "loadClassMethod" ["class"]=> string(42) "Pecee\SimpleRouter\ClassLoader\ClassLoader" ["type"]=> string(2) "->" } [7]=> array(5) { ["file"]=> string(74) "/var/www/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php" ["line"]=> int(414) ["function"]=> string(11) "renderRoute" ["class"]=> string(30) "Pecee\SimpleRouter\Route\Route" ["type"]=> string(2) "->" } [8]=> array(5) { ["file"]=> string(74) "/var/www/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/Router.php" ["line"]=> int(343) ["function"]=> string(12) "routeRequest" ["class"]=> string(25) "Pecee\SimpleRouter\Router" ["type"]=> string(2) "->" } [9]=> array(5) { ["file"]=> string(80) "/var/www/html/vendor/pecee/simple-router/src/Pecee/SimpleRouter/SimpleRouter.php" ["line"]=> int(69) ["function"]=> string(5) "start" ["class"]=> string(25) "Pecee\SimpleRouter\Router" ["type"]=> string(2) "->" } [10]=> array(5) { ["file"]=> string(23) "/var/www/html/index.php" ["line"]=> int(55) ["function"]=> string(5) "start" ["class"]=> string(31) "Pecee\SimpleRouter\SimpleRouter" ["type"]=> string(2) "::" } } ["previous":"Exception":private]=> NULL ["errorInfo"]=> array(3) { [0]=> string(5) "42000" [1]=> int(1064) [2]=> string(227) "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 NOT em.type = 2 AND em.estimation_no = ? ORDER BY em.id' at line 17" } }