Fatal error: Uncaught exception 'tx_oelib_Exception_Database' with message 'There was an error with the database query. 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 'LIMIT 1' at line 5 The last built query: SELECT * FROM tx_crigedocuments_document WHERE uid = LIMIT 1' in /var/www/html/typo3conf/ext/oelib/class.tx_oelib_db.php:328 Stack trace: #0 /var/www/html/typo3conf/ext/oelib/class.tx_oelib_db.php(391): tx_oelib_db::select('*', 'tx_crigedocumen...', 'uid = ', '', '', 1) #1 /var/www/html/typo3conf/ext/oelib/class.tx_oelib_db.php(357): tx_oelib_db::selectMultiple('*', 'tx_crigedocumen...', 'uid = ', '', '', 1) #2 /var/www/html/typo3conf/ext/crige_documents/pi1/class.tx_crigedocuments_pi1_SecureDownload.php(137): tx_oelib_db::selectSingle('*', 'tx_crigedocumen...', 'uid = ') #3 /var/www/html/typo3conf/ext/crige_documents/pi1/class.tx_crigedocuments_pi1_SecureDownload.php(88): tx_crigedocuments_pi1_SecureDownload->checkAc in /var/www/html/typo3conf/ext/oelib/class.tx_oelib_db.php on line 328