Title: database errors: duplicate entry &#8216;2441&#8217; and sql syntax error
Last modified: August 19, 2016

---

# database errors: duplicate entry ‘2441’ and sql syntax error

 *  [julia-pelish](https://wordpress.org/support/users/julia-pelish/)
 * (@julia-pelish)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/database-errors-duplicate-entry-2441-and-sql-syntax-error/)
 * I am using version 2.0.2 — I believe and get the database error message listed
   below on the header intermittently, does anyone know how to resolve this?
 * WordPress database error: [Duplicate entry ‘2441’ for key 1]
    INSERT INTO wp_bas_refer(
   referer_string) VALUES (‘[http://images.google.com/imgres?imgurl=http://juliapelish.com/blog/wp-content/uploads/2008/08/van-dusen-gardens-wedding-vancouver.jpg&imgrefurl=http://www.juliapelish.com/blog/&usg=__0ur7SWep_ku-3UcksO2OKvim_1g=&h=418&w=280&sz=46&hl=en&start=36&um=1&tbnid=zMPGJHik94eExM:&tbnh=125&tbnw=84&prev=/images%3Fq%3Dgarden%2Bwedding%2Byoung%2Bcouple%26ndsp%3D20%26hl%3Den%26safe%3Dactive%26client%3Dfirefox-a%26channel%3Ds%26rls%3Dorg.mozilla:en-US:official%26sa%3DN%26start%3D20%26um%3D1&#8217](http://images.google.com/imgres?imgurl=http://juliapelish.com/blog/wp-content/uploads/2008/08/van-dusen-gardens-wedding-vancouver.jpg&imgrefurl=http://www.juliapelish.com/blog/&usg=__0ur7SWep_ku-3UcksO2OKvim_1g=&h=418&w=280&sz=46&hl=en&start=36&um=1&tbnid=zMPGJHik94eExM:&tbnh=125&tbnw=84&prev=/images%3Fq%3Dgarden%2Bwedding%2Byoung%2Bcouple%26ndsp%3D20%26hl%3Den%26safe%3Dactive%26client%3Dfirefox-a%26channel%3Ds%26rls%3Dorg.mozilla:en-US:official%26sa%3DN%26start%3D20%26um%3D1&#8217););
 * WordPress database error: [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‘
   2, 2953, ‘2009-04-27 14:37:04′)’ at line 1]
    INSERT INTO wp_bas_visitors (visit_ip,
   referer, osystem, useragent, lasthere) VALUES (-812628414, , 2, 2953, ‘2009-04-
   27 14:37:04’);
 * WordPress database error: [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 referer = referer_id AND osystem = os_id AND useragent = ua_]
    SELECT * FROM
   wp_bas_visitors, wp_bas_refer, wp_bas_ua, wp_bas_os WHERE visit_id = AND referer
   = referer_id AND osystem = os_id AND useragent = ua_id
 * WordPress database error: [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‘‘
   garden+wedding+young+couple’, ‘Google Image Search’)’ at line ]
    INSERT INTO 
   wp_bas_searches (search_refer, search_phrase, search_engine) VALUES (, ‘garden
   +wedding+young+couple’, ‘Google Image Search’);
 * WordPress database error: [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‘‘
   2009-04-27 14:37:04′, 0, 10)’ at line 1]
    INSERT INTO wp_bas_log (visit, stamp,
   outbound, page) VALUES (, ‘2009-04-27 14:37:04’, 0, 10);

The topic ‘database errors: duplicate entry ‘2441’ and sql syntax error’ is closed
to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [julia-pelish](https://wordpress.org/support/users/julia-pelish/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/database-errors-duplicate-entry-2441-and-sql-syntax-error/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
