object(Exception)#23 (7) { ["message":protected]=> string(439) "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 'groups WHERE id = ?' at line 1 SELECT (spaces - (SELECT SUM(persons) FROM group_reserves WHERE group_reserves.group_id = groups.id AND group_reserves.status IN (1, 2))) AS disponibles, deperture_date, return_date, spaces FROM groups WHERE id = :id " ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(1) ["file":protected]=> string(57) "/home/vivirvia/webServices/app/Models/Source/Conector.php" ["line":protected]=> int(67) ["trace":"Exception":private]=> array(5) { [0]=> array(6) { ["file"]=> string(57) "/home/vivirvia/webServices/app/Models/Source/Conector.php" ["line"]=> int(110) ["function"]=> string(3) "run" ["class"]=> string(26) "app\Models\Source\Conector" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> array(1) { [":id"]=> int(334) } } } [1]=> array(6) { ["file"]=> string(60) "/home/vivirvia/webServices/app/Models/VivirViajando/User.php" ["line"]=> int(264) ["function"]=> string(7) "getItem" ["class"]=> string(26) "app\Models\Source\Conector" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(6) "groups" [1]=> string(182) "(spaces - (SELECT SUM(persons) FROM group_reserves WHERE group_reserves.group_id = groups.id AND group_reserves.status IN (1, 2))) AS disponibles, deperture_date, return_date, spaces" [2]=> string(8) "id = :id" [3]=> array(1) { [":id"]=> int(334) } } } [2]=> array(6) { ["file"]=> string(76) "/home/vivirvia/webServices/app/Controller/VivirViajando/Page/Reservacion.php" ["line"]=> int(30) ["function"]=> string(14) "getSystemGroup" ["class"]=> string(29) "app\Models\VivirViajando\User" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> int(334) } } [3]=> array(6) { ["file"]=> string(59) "/home/vivirvia/webServices/app/Controller/Source/Config.php" ["line"]=> int(57) ["function"]=> string(4) "show" ["class"]=> string(45) "app\Controller\VivirViajando\Page\Reservacion" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [4]=> array(6) { ["file"]=> string(36) "/home/vivirvia/public_html/index.php" ["line"]=> int(7) ["function"]=> string(10) "setRequest" ["class"]=> string(28) "app\Controller\Source\Config" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> array(0) { } [1]=> string(29) "/reservacion/yucatan-y-holbox" } } } ["previous":"Exception":private]=> NULL }