Fatal error: Uncaught 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 ') OR ts.tuIdModality IN () OR ts.weIdModality IN () OR ts.thIdModality IN ' at line 47 in /home/saldaterra/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:104 Stack trace: #0 /home/saldaterra/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php(104): PDO->query('\nSELECT \nhr.nam...') #1 /home/saldaterra/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(833): Doctrine\DBAL\Driver\PDOConnection->query('\nSELECT \nhr.nam...') #2 /home/saldaterra/app/Model/Modality.php(355): Doctrine\DBAL\Connection->executeQuery('\nSELECT \nhr.nam...') #3 /home/saldaterra/natasul/Controller/Horarios.php(83): App\Model\Modality->getAllTimesheetByIdModality(3, Array) #4 [internal function]: Natasul\Controller\Horarios->treinamento_funcional() #5 /home/saldaterra/system/Zuni/App.php(3 in /home/saldaterra/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php on line 90