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 '%20document.referrer%20+%20'&time=1280417370; SCRIPT_NAME /ranking/exec/c.php; P' at line 4
in:
[INSERT INTO pt_ranking_2 (raw, request_time, http_referer, http_user_agent, remote_addr, request_uri, t_id, status, page_title, custom_links) VALUES ('HTTP_X_CC_ID ccc03-01; HTTP_HOST seo-protools.com; 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; PATH /usr/bin:/bin:/usr/sbin:/sbin; SERVER_SIGNATURE
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 PHP/5.3.2 mod_jk/1.2.28 mod_fastcgi/2.4.2 mod_python/3.3.1 Python/2.6.1 Server at seo-protools.com Port 80
; SERVER_SOFTWARE Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 PHP/5.3.2 mod_jk/1.2.28 mod_fastcgi/2.4.2 mod_python/3.3.1 Python/2.6.1; SERVER_NAME seo-protools.com; SERVER_ADDR 203.143.123.210; SERVER_PORT 80; REMOTE_ADDR 38.107.191.100; DOCUMENT_ROOT /Volumes/Sites/webadmin/Sites/public_html/seo-protools.com; SERVER_ADMIN admin@example.com; SCRIPT_FILENAME /Volumes/Sites/webadmin/Sites/public_html/seo-protools.com/ranking/exec/c.php; REMOTE_PORT 62025; GATEWAY_INTERFACE CGI/1.1; SERVER_PROTOCOL HTTP/1.1; REQUEST_METHOD GET; QUERY_STRING m=script&tID=2&ref=' + document.referrer + '&time=1280417370; REQUEST_URI /ranking/exec/c.php?m=script&tID=2&ref='%20+%20document.referrer%20+%20'&time=1280417370; SCRIPT_NAME /ranking/exec/c.php; PHP_SELF /ranking/exec/c.php; REQUEST_TIME 1283920160; ', '1283920160', '’ document.referrer ’', 'CCBot/1.0 (+http://www.commoncrawl.org/bot.html)', '38.107.191.100', '/ranking/exec/c.php?m=script&tID=2&ref='%20+%20document.referrer%20+%20'&time=1280417370', '2', '1', '', '')]