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 'order by display_order ASC' at line 1SELECT * from gallery_images where gallery_id= order by display_order ASC array ( 'u' => 'gallery/latest-projects', 'ESESSION' => '4094b1f4083d794ae4610adde86f147b', )array ( 'REDIRECT_UNIQUE_ID' => 'TzLnGNB0LVIAABC8CXMAAAA5', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'TzLnGNB0LVIAABC8CXMAAAA5', 'HTTP_X_CC_ID' => 'ccc01-02', 'HTTP_HOST' => 'www.actindustrial.com.au', 'HTTP_USER_AGENT' => 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_LANGUAGE' => 'en-us,en;q=0.5', 'HTTP_ACCEPT_ENCODING' => 'gzip', 'HTTP_ACCEPT_CHARSET' => 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_CONNECTION' => 'close', 'HTTP_CACHE_CONTROL' => 'no-cache', 'HTTP_PRAGMA' => 'no-cache', 'HTTP_COOKIE' => 'ESESSION=4094b1f4083d794ae4610adde86f147b', 'PATH' => '/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.actindustrial.com.au', 'SERVER_ADDR' => '208.116.62.225', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '38.107.179.212', 'DOCUMENT_ROOT' => '/home/actindus/public_html', 'SERVER_ADMIN' => 'webmaster@actindustrial.com.au', 'SCRIPT_FILENAME' => '/home/actindus/public_html/index.php', 'REMOTE_PORT' => '42755', 'REDIRECT_QUERY_STRING' => 'u=gallery/latest-projects', 'REDIRECT_URL' => '/gallery/latest-projects', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'u=gallery/latest-projects', 'REQUEST_URI' => '/gallery/latest-projects', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME' => 1328736024, 'argv' => array ( 0 => 'u=gallery/latest-projects', ), 'argc' => 1, )