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 'AND Kategorie <> '' ORDER BY Anordnung ASC' at line 5

Trace in execution order:

require('/var/www/clients/client148/web181/web/frog/app/main.php')  on line 83 in /var/www/clients/client148/web181/web/index.php
   main()  on line 245 in /var/www/clients/client148/web181/web/frog/app/main.php
      Page→_executeLayout()  on line 235 in /var/www/clients/client148/web181/web/frog/app/main.php
         eval()  on line 388 in /var/www/clients/client148/web181/web/frog/app/classes/Page.php
            require('/var/www/clients/client148/web181/web/views/page.php')  on line 2 in /var/www/clients/client148/web181/web/frog/app/classes/Page.php(388) : eval()'d code
               require('/var/www/clients/client148/web181/web/views/snippet.header.php')  on line 1 in /var/www/clients/client148/web181/web/views/page.php
                  Frontend→drawCourseDetailView('')  on line 84 in /var/www/clients/client148/web181/web/views/snippet.header.php
                     Core→_exec('SELECT kurse.*, kurse_kategorien.title as KategorieTitel FROM ku...', PDO Object)  on line 332 in /var/www/clients/client148/web181/web/organizer/php/class.Frontend.new.php
                        PDOStatement→execute()  on line 40 in /var/www/clients/client148/web181/web/organizer/php/class.Core.php
                           

Exception was thrown on line 40 in /var/www/clients/client148/web181/web/organizer/php/class.Core.php

Dispatcher status

VariableValue
request methodGET

GET

VariableValue
kategorie
kurs

SERVER

VariableValue
TMPDIR/var/www/clients/client148/web181/tmp
PHPRC/etc/php5/cgi/
TEMP/var/www/clients/client148/web181/tmp
PHP_DOCUMENT_ROOT/var/www/clients/client148/web181
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD/var/www/php-fcgi-scripts/web181
SHLVL0
TMP/var/www/clients/client148/web181/tmp
PHP_FCGI_MAX_REQUESTS5000
CONTENT_LENGTH0
SCRIPT_NAME/index.php
REQUEST_URI/kurse?kategorie=&kurs=
QUERY_STRINGPAGE=kurse&kategorie=&kurs=
REQUEST_METHODGET
SERVER_PROTOCOLHTTP/1.1
GATEWAY_INTERFACECGI/1.1
REDIRECT_URL/kurse
REDIRECT_QUERY_STRINGPAGE=kurse&kategorie=&kurs=
REMOTE_PORT57086
SCRIPT_FILENAME/var/www/ekiz-schwaz.at/web/index.php
SERVER_ADMINwebmaster@ekiz-schwaz.at
CONTEXT_DOCUMENT_ROOT/var/www/ekiz-schwaz.at/web
CONTEXT_PREFIX
REQUEST_SCHEMEhttps
DOCUMENT_ROOT/var/www/ekiz-schwaz.at/web
REMOTE_ADDR54.84.236.168
SERVER_PORT443
SERVER_ADDR82.150.192.19
SERVER_NAMEwww.ekiz-schwaz.at
SERVER_SOFTWAREApache/2.4.10 (Debian)
SERVER_SIGNATURE<address>Apache/2.4.10 (Debian) Server at www.ekiz-schwaz.at Por …
HTTP_ACCEPT_ENCODINGgzip
HTTP_CONNECTIONclose
HTTP_HOSTwww.ekiz-schwaz.at
HTTP_ACCEPTtext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENTCCBot/2.0 (https://commoncrawl.org/faq/)
SSL_TLS_SNIwww.ekiz-schwaz.at
HTTPSon
SCRIPT_URIhttps://www.ekiz-schwaz.at/kurse
SCRIPT_URL/kurse
REDIRECT_STATUS200
REDIRECT_SSL_TLS_SNIwww.ekiz-schwaz.at
REDIRECT_HTTPSon
REDIRECT_SCRIPT_URIhttps://www.ekiz-schwaz.at/kurse
REDIRECT_SCRIPT_URL/kurse
FCGI_ROLERESPONDER
PHP_SELF/index.php
REQUEST_TIME_FLOAT1545013597.3742
REQUEST_TIME1545013597