Author Topic: DB Error: Bad SQL Query  (Read 6711 times)

0 Members and 1 Guest are viewing this topic.

Offline kathrinh

  • Pre-Newbie
  • Posts: 1
    • View Profile
DB Error: Bad SQL Query
« on: January 13, 2006, 10:51:55 PM »
Hallo zusammen,
bitte nicht schlagen... aber ich finde keine Antwort auf mein Problem.

Habe gerade die Installation hinter mir und hat auch alles geklappt.

Aber jetzt wird auf der Startseite folgende Fehlermeldung angezeigt:
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 5
Unknown column 'i.user_id' in 'on clause'

Was muß ich verändern um das wegzukriegen?
Die DB läuft unter MySQL5.

Hab jetzt schon alles hin und her probiert, aber nix half. Wäre nett wenn ihr einen Tip für mich habt - und so dass ich ihn versteh  :)

Danke,

Kathrin

Offline oskarxxx

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: DB Error: Bad SQL Query
« Reply #1 on: January 13, 2006, 10:59:00 PM »
Hallo,

habe fast den gleichen oben genannten Fehler:

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id LIMIT 1, 1
Unknown column 'i.user_id' in 'on clause'


Hoffe auf baldige Hilfe!


Gruss
oskarxxx

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: DB Error: Bad SQL Query
« Reply #2 on: January 14, 2006, 03:48:13 AM »
mit anderen worten: 4images läuft nicht!?
kein problem, PN besser msn > im profil!

Offline oskarxxx

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: DB Error: Bad SQL Query
« Reply #3 on: January 14, 2006, 09:27:06 AM »
Hallo,

der Adminbereich läuft ohne Probleme, aber die Galerie zeigt keine Bilder an und am Anfang der Seite erscheinen folgenede Fehlermeldungen:


DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id LIMIT 1, 1
Unknown column 'i.user_id' in 'on clause'

DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND c.cat_id = i.cat_id AND i.cat_id NOT IN (0) ORDER BY i.image_date DESC LIMIT 3
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/freepics.de/4images/includes/db_mysql.php on line 116



Gruss
okarxxx

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: DB Error: Bad SQL Query
« Reply #4 on: January 14, 2006, 10:49:23 AM »
die zeile 116 in der db_mysql ist:    return mysql_num_rows($this->query_id);

...denkfehler??

liegt die nicht im localhost
..nicht im mysql?
bei funpic? (nicht aktiviert)
bei 1&1 mit dem seltsamen datenbank-namen?

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: DB Error: Bad SQL Query
« Reply #5 on: January 14, 2006, 11:51:04 AM »
Hallo?
Das ist ein bekanntes Problem mit mysql v5:

http://www.4homepages.de/forum/index.php?topic=10184.new

Offline McMark

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: DB Error: Bad SQL Query
« Reply #6 on: January 16, 2006, 07:19:59 PM »
Moin Ich hab auch den Fehler  :?

@Honda 2000 was meinst du ?
Hat Jemand eine erklärung für die fehler beseitigung????

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: DB Error: Bad SQL Query
« Reply #7 on: January 16, 2006, 07:22:00 PM »
ein thema reicht doch oder? (o: