• I get this error on my Blogroll:

    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 '' at line 1]
    SELECT cat_id, cat_name FROM

    Can anyone help me with what it means? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • What version of wp are you using? How are you getting this error? Where do you see this error?

    YOu need to give us a lot more to go on I’m afraid.

    ?? I am getting the same error in 2.1.2….it is a template issue for me, I believe, since the error only shows up when I try to use an older template. The error is, specifically:

    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 ” at line 1]
    SELECT cat_id, cat_name FROM

    and I believe it stems from a problem with this line:

    <?php
     $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
     foreach ($link_cats as $link_cat) {
     ?>

    but I am afraid that’s where my “expertise” falls apart. Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Database error with line 1 on MYSQL’ is closed to new replies.