Error 500 Internal Server Error

GET https://freakingcable.alexander-a2.com/admin/create-possible-product/1/2

Forwarded to ErrorController (5406c5)

Exceptions

An exception occurred while executing a query: 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 'exists) VALUES ('USB-A to USB-3', 'cable', 0)' at line 1

Exceptions 3

Doctrine\DBAL\Exception\ SyntaxErrorException

Show exception properties
Doctrine\DBAL\Exception\SyntaxErrorException {#1119
  -query: Doctrine\DBAL\Query {#1112
    -sql: "INSERT INTO product (name, type, exists) VALUES (?, ?, ?)"
    -params: array:3 [
      1 => "USB-A to USB-3"
      2 => "cable"
      3 => false
    ]
    -types: array:3 [
      1 => "string"
      2 => "string"
      3 => "boolean"
    ]
  }
}
  1. 1344,
  2. 1382,
  3. 1479,
  4. 1541,
  5. 1554,
  6. 1626 => new SyntaxErrorException($exception, $query),
  7. 1044,
  8. 1045,
  9. 1046,
  10. 1049,
  11. 1095,
  1. private function handleDriverException(
  2. Driver\Exception $driverException,
  3. ?Query $query,
  4. ): DriverException {
  5. $this->exceptionConverter ??= $this->driver->getExceptionConverter();
  6. $exception = $this->exceptionConverter->convert($driverException, $query);
  7. if ($exception instanceof ConnectionLost) {
  8. $this->close();
  9. }
in vendor/doctrine/dbal/src/Connection.php -> handleDriverException (line 1396)
  1. Driver\Exception $e,
  2. string $sql,
  3. array $params = [],
  4. array $types = [],
  5. ): DriverException {
  6. return $this->handleDriverException($e, new Query($sql, $params, $types));
  7. }
  8. /** @internal */
  9. final public function convertException(Driver\Exception $e): DriverException
  10. {
in vendor/doctrine/dbal/src/Statement.php -> convertExceptionDuringQuery (line 108)
  1. return new Result(
  2. $this->stmt->execute(),
  3. $this->conn,
  4. );
  5. } catch (Driver\Exception $ex) {
  6. throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  7. }
  8. }
  9. /**
  10. * Executes the statement with the currently bound parameters and return result.
  1. *
  2. * @throws Exception
  3. */
  4. public function executeStatement(): int|string
  5. {
  6. return $this->execute()->rowCount();
  7. }
  8. /**
  9. * Gets the wrapped driver statement.
  10. */
  1. foreach ($insertData[$tableName] as $column => $value) {
  2. $stmt->bindValue($paramIndex++, $value, $this->columnTypes[$column]);
  3. }
  4. }
  5. $stmt->executeStatement();
  6. if ($isPostInsertId) {
  7. $generatedId = $idGenerator->generateId($this->em, $entity);
  8. $id = [$this->class->identifier[0] => $generatedId];
in vendor/doctrine/orm/src/UnitOfWork.php -> executeInserts (line 1060)
  1. $persister->addInsert($entity);
  2. unset($this->entityInsertions[$oid]);
  3. }
  4. $persister->executeInserts();
  5. foreach ($batch->entities as $entity) {
  6. $oid = spl_object_id($entity);
  7. if (! isset($this->entityIdentifiers[$oid])) {
in vendor/doctrine/orm/src/UnitOfWork.php -> executeInserts (line 403)
  1. // Perform entity insertions first, so that all new entities have their rows in the database
  2. // and can be referred to by foreign keys. The commit order only needs to take new entities
  3. // into account (new entities referring to other new entities), since all other types (entities
  4. // with updates or scheduled deletions) are currently not a problem, since they are already
  5. // in the database.
  6. $this->executeInserts();
  7. }
  8. if ($this->entityUpdates) {
  9. // Updates do not need to follow a particular order
  10. $this->executeUpdates();
  1. * @throws ORMException
  2. */
  3. public function flush(): void
  4. {
  5. $this->errorIfClosed();
  6. $this->unitOfWork->commit();
  7. }
  8. /**
  9. * {@inheritDoc}
  10. */
EntityManager->flush() in src/Controller/Admin/PossibleProductsController.php (line 94)
  1. $pcB = (new ProductConnector())->setConnector($connectorB)->setProduct($product);
  2. $em->persist($product);
  3. $em->persist($pcA);
  4. $em->persist($pcB);
  5. $em->flush();
  6. $this->addFlash('success', 'Product successfully created.');
  7. $editUrl = $adminUrlGenerator
  8. ->setController(ProductCrudController::class)
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/freakingcable.com/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return static function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Doctrine\DBAL\Driver\PDO\ Exception

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 'exists) VALUES ('USB-A to USB-3', 'cable', 0)' at line 1

  1. } else {
  2. $code = $exception->getCode();
  3. $sqlState = null;
  4. }
  5. return new self($exception->getMessage(), $sqlState, $code, $exception);
  6. }
  7. }
  1. public function execute(): Result
  2. {
  3. try {
  4. $this->stmt->execute();
  5. } catch (PDOException $exception) {
  6. throw Exception::new($exception);
  7. }
  8. return new Result($this->stmt);
  9. }
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. 'sql' => $this->sql,
  2. 'params' => $this->params,
  3. 'types' => $this->types,
  4. ]);
  5. return parent::execute();
  6. }
  7. }
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. $this->stopwatch?->start('doctrine', 'doctrine');
  2. $query->start();
  3. try {
  4. return parent::execute();
  5. } finally {
  6. $query->stop();
  7. $this->stopwatch?->stop('doctrine');
  8. }
  9. }
  1. /** @throws Exception */
  2. private function execute(): Result
  3. {
  4. try {
  5. return new Result(
  6. $this->stmt->execute(),
  7. $this->conn,
  8. );
  9. } catch (Driver\Exception $ex) {
  10. throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  11. }
  1. *
  2. * @throws Exception
  3. */
  4. public function executeStatement(): int|string
  5. {
  6. return $this->execute()->rowCount();
  7. }
  8. /**
  9. * Gets the wrapped driver statement.
  10. */
  1. foreach ($insertData[$tableName] as $column => $value) {
  2. $stmt->bindValue($paramIndex++, $value, $this->columnTypes[$column]);
  3. }
  4. }
  5. $stmt->executeStatement();
  6. if ($isPostInsertId) {
  7. $generatedId = $idGenerator->generateId($this->em, $entity);
  8. $id = [$this->class->identifier[0] => $generatedId];
in vendor/doctrine/orm/src/UnitOfWork.php -> executeInserts (line 1060)
  1. $persister->addInsert($entity);
  2. unset($this->entityInsertions[$oid]);
  3. }
  4. $persister->executeInserts();
  5. foreach ($batch->entities as $entity) {
  6. $oid = spl_object_id($entity);
  7. if (! isset($this->entityIdentifiers[$oid])) {
in vendor/doctrine/orm/src/UnitOfWork.php -> executeInserts (line 403)
  1. // Perform entity insertions first, so that all new entities have their rows in the database
  2. // and can be referred to by foreign keys. The commit order only needs to take new entities
  3. // into account (new entities referring to other new entities), since all other types (entities
  4. // with updates or scheduled deletions) are currently not a problem, since they are already
  5. // in the database.
  6. $this->executeInserts();
  7. }
  8. if ($this->entityUpdates) {
  9. // Updates do not need to follow a particular order
  10. $this->executeUpdates();
  1. * @throws ORMException
  2. */
  3. public function flush(): void
  4. {
  5. $this->errorIfClosed();
  6. $this->unitOfWork->commit();
  7. }
  8. /**
  9. * {@inheritDoc}
  10. */
EntityManager->flush() in src/Controller/Admin/PossibleProductsController.php (line 94)
  1. $pcB = (new ProductConnector())->setConnector($connectorB)->setProduct($product);
  2. $em->persist($product);
  3. $em->persist($pcA);
  4. $em->persist($pcB);
  5. $em->flush();
  6. $this->addFlash('success', 'Product successfully created.');
  7. $editUrl = $adminUrlGenerator
  8. ->setController(ProductCrudController::class)
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/freakingcable.com/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return static function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

PDOException

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 'exists) VALUES ('USB-A to USB-3', 'cable', 0)' at line 1

  1. }
  2. public function execute(): Result
  3. {
  4. try {
  5. $this->stmt->execute();
  6. } catch (PDOException $exception) {
  7. throw Exception::new($exception);
  8. }
  9. return new Result($this->stmt);
  1. }
  2. public function execute(): Result
  3. {
  4. try {
  5. $this->stmt->execute();
  6. } catch (PDOException $exception) {
  7. throw Exception::new($exception);
  8. }
  9. return new Result($this->stmt);
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. 'sql' => $this->sql,
  2. 'params' => $this->params,
  3. 'types' => $this->types,
  4. ]);
  5. return parent::execute();
  6. }
  7. }
  1. $this->wrappedStatement->bindValue($param, $value, $type);
  2. }
  3. public function execute(): Result
  4. {
  5. return $this->wrappedStatement->execute();
  6. }
  7. }
  1. $this->stopwatch?->start('doctrine', 'doctrine');
  2. $query->start();
  3. try {
  4. return parent::execute();
  5. } finally {
  6. $query->stop();
  7. $this->stopwatch?->stop('doctrine');
  8. }
  9. }
  1. /** @throws Exception */
  2. private function execute(): Result
  3. {
  4. try {
  5. return new Result(
  6. $this->stmt->execute(),
  7. $this->conn,
  8. );
  9. } catch (Driver\Exception $ex) {
  10. throw $this->conn->convertExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
  11. }
  1. *
  2. * @throws Exception
  3. */
  4. public function executeStatement(): int|string
  5. {
  6. return $this->execute()->rowCount();
  7. }
  8. /**
  9. * Gets the wrapped driver statement.
  10. */
  1. foreach ($insertData[$tableName] as $column => $value) {
  2. $stmt->bindValue($paramIndex++, $value, $this->columnTypes[$column]);
  3. }
  4. }
  5. $stmt->executeStatement();
  6. if ($isPostInsertId) {
  7. $generatedId = $idGenerator->generateId($this->em, $entity);
  8. $id = [$this->class->identifier[0] => $generatedId];
in vendor/doctrine/orm/src/UnitOfWork.php -> executeInserts (line 1060)
  1. $persister->addInsert($entity);
  2. unset($this->entityInsertions[$oid]);
  3. }
  4. $persister->executeInserts();
  5. foreach ($batch->entities as $entity) {
  6. $oid = spl_object_id($entity);
  7. if (! isset($this->entityIdentifiers[$oid])) {
in vendor/doctrine/orm/src/UnitOfWork.php -> executeInserts (line 403)
  1. // Perform entity insertions first, so that all new entities have their rows in the database
  2. // and can be referred to by foreign keys. The commit order only needs to take new entities
  3. // into account (new entities referring to other new entities), since all other types (entities
  4. // with updates or scheduled deletions) are currently not a problem, since they are already
  5. // in the database.
  6. $this->executeInserts();
  7. }
  8. if ($this->entityUpdates) {
  9. // Updates do not need to follow a particular order
  10. $this->executeUpdates();
  1. * @throws ORMException
  2. */
  3. public function flush(): void
  4. {
  5. $this->errorIfClosed();
  6. $this->unitOfWork->commit();
  7. }
  8. /**
  9. * {@inheritDoc}
  10. */
EntityManager->flush() in src/Controller/Admin/PossibleProductsController.php (line 94)
  1. $pcB = (new ProductConnector())->setConnector($connectorB)->setProduct($product);
  2. $em->persist($product);
  3. $em->persist($pcA);
  4. $em->persist($pcB);
  5. $em->flush();
  6. $this->addFlash('success', 'Product successfully created.');
  7. $editUrl = $adminUrlGenerator
  8. ->setController(ProductCrudController::class)
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 32)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/var/www/freakingcable.com/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return static function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 22:18:44 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "480ced"
    },
    "request_uri": "https://freakingcable.alexander-a2.com/_profiler/480ced",
    "method": "GET"
}
INFO 22:18:44 deprecation User Deprecated: Support for MySQL < 8 is deprecated and will be removed in DBAL 5 (AbstractMySQLDriver.php:75 called by AbstractDriverMiddleware.php:32, https://github.com/doctrine/dbal/pull/6343, package doctrine/dbal)
{
    "exception": {}
}

Stack Traces 3

[3/3] SyntaxErrorException
Doctrine\DBAL\Exception\SyntaxErrorException:
An exception occurred while executing a query: 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 'exists) VALUES ('USB-A to USB-3', 'cable', 0)' at line 1

  at vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:78
  at Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
     (vendor/doctrine/dbal/src/Connection.php:1460)
  at Doctrine\DBAL\Connection->handleDriverException()
     (vendor/doctrine/dbal/src/Connection.php:1396)
  at Doctrine\DBAL\Connection->convertExceptionDuringQuery()
     (vendor/doctrine/dbal/src/Statement.php:108)
  at Doctrine\DBAL\Statement->execute()
     (vendor/doctrine/dbal/src/Statement.php:133)
  at Doctrine\DBAL\Statement->executeStatement()
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:253)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts()
     (vendor/doctrine/orm/src/UnitOfWork.php:1060)
  at Doctrine\ORM\UnitOfWork->executeInserts()
     (vendor/doctrine/orm/src/UnitOfWork.php:403)
  at Doctrine\ORM\UnitOfWork->commit()
     (vendor/doctrine/orm/src/EntityManager.php:268)
  at Doctrine\ORM\EntityManager->flush()
     (src/Controller/Admin/PossibleProductsController.php:94)
  at App\Controller\Admin\PossibleProductsController->create()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:191)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/freakingcable.com/vendor/autoload_runtime.php')
     (public/index.php:5)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
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 'exists) VALUES ('USB-A to USB-3', 'cable', 0)' at line 1

  at vendor/doctrine/dbal/src/Driver/PDO/Exception.php:24
  at Doctrine\DBAL\Driver\PDO\Exception::new()
     (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:57)
  at Doctrine\DBAL\Driver\PDO\Statement->execute()
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
  at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
     (vendor/doctrine/dbal/src/Logging/Statement.php:46)
  at Doctrine\DBAL\Logging\Statement->execute()
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
  at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Statement.php:58)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Statement->execute()
     (vendor/doctrine/dbal/src/Statement.php:104)
  at Doctrine\DBAL\Statement->execute()
     (vendor/doctrine/dbal/src/Statement.php:133)
  at Doctrine\DBAL\Statement->executeStatement()
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:253)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts()
     (vendor/doctrine/orm/src/UnitOfWork.php:1060)
  at Doctrine\ORM\UnitOfWork->executeInserts()
     (vendor/doctrine/orm/src/UnitOfWork.php:403)
  at Doctrine\ORM\UnitOfWork->commit()
     (vendor/doctrine/orm/src/EntityManager.php:268)
  at Doctrine\ORM\EntityManager->flush()
     (src/Controller/Admin/PossibleProductsController.php:94)
  at App\Controller\Admin\PossibleProductsController->create()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:191)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/freakingcable.com/vendor/autoload_runtime.php')
     (public/index.php:5)                
[1/3] PDOException
PDOException:
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 'exists) VALUES ('USB-A to USB-3', 'cable', 0)' at line 1

  at vendor/doctrine/dbal/src/Driver/PDO/Statement.php:55
  at PDOStatement->execute()
     (vendor/doctrine/dbal/src/Driver/PDO/Statement.php:55)
  at Doctrine\DBAL\Driver\PDO\Statement->execute()
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
  at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
     (vendor/doctrine/dbal/src/Logging/Statement.php:46)
  at Doctrine\DBAL\Logging\Statement->execute()
     (vendor/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php:24)
  at Doctrine\DBAL\Driver\Middleware\AbstractStatementMiddleware->execute()
     (vendor/symfony/doctrine-bridge/Middleware/Debug/Statement.php:58)
  at Symfony\Bridge\Doctrine\Middleware\Debug\Statement->execute()
     (vendor/doctrine/dbal/src/Statement.php:104)
  at Doctrine\DBAL\Statement->execute()
     (vendor/doctrine/dbal/src/Statement.php:133)
  at Doctrine\DBAL\Statement->executeStatement()
     (vendor/doctrine/orm/src/Persisters/Entity/BasicEntityPersister.php:253)
  at Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts()
     (vendor/doctrine/orm/src/UnitOfWork.php:1060)
  at Doctrine\ORM\UnitOfWork->executeInserts()
     (vendor/doctrine/orm/src/UnitOfWork.php:403)
  at Doctrine\ORM\UnitOfWork->commit()
     (vendor/doctrine/orm/src/EntityManager.php:268)
  at Doctrine\ORM\EntityManager->flush()
     (src/Controller/Admin/PossibleProductsController.php:94)
  at App\Controller\Admin\PossibleProductsController->create()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:191)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:32)
  at require_once('/var/www/freakingcable.com/vendor/autoload_runtime.php')
     (public/index.php:5)