QUERY: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by display_order ASC' at line 1SELECT * from gallery_images where gallery_id= order by display_order ASC array ( 'u' => 'gallery/latest-projects', )array ( 'REDIRECT_UNIQUE_ID' => 'WemDRNB0LVIABfAiH5UAAABV', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'WemDRNB0LVIABfAiH5UAAABV', 'HTTP_HOST' => 'actindustrial.com.au', 'HTTP_ACCEPT_ENCODING' => 'x-gzip, gzip, deflate', 'HTTP_USER_AGENT' => 'CCBot/2.0 (http://commoncrawl.org/faq/)', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_IF_MODIFIED_SINCE' => 'Thu, 24 Aug 2017 02:57:57 GMT', 'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin', 'LD_LIBRARY_PATH' => '/usr/local/apache/lib', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'actindustrial.com.au', 'SERVER_ADDR' => '208.116.62.225', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '54.167.202.184', 'DOCUMENT_ROOT' => '/home/actindus/public_html', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/actindus/public_html', 'SERVER_ADMIN' => 'webmaster@actindustrial.com.au', 'SCRIPT_FILENAME' => '/home/actindus/public_html/index.php', 'REMOTE_PORT' => '46074', 'REDIRECT_URL' => '/gallery/latest-projects', 'REDIRECT_QUERY_STRING' => 'u=gallery/latest-projects', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.0', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'u=gallery/latest-projects', 'REQUEST_URI' => '/gallery/latest-projects', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1508475716.8050000667572021484375, 'REQUEST_TIME' => 1508475716, 'argv' => array ( 0 => 'u=gallery/latest-projects', ), 'argc' => 1, )