Author Topic: Error Message(SQL),pictures are not showing up!  (Read 2741 times)

0 Members and 1 Guest are viewing this topic.

Offline Shaz

  • Pre-Newbie
  • Posts: 2
    • View Profile
Error Message(SQL),pictures are not showing up!
« on: April 10, 2006, 03:35:43 PM »
Hi
I've got a problem with the gallery but I have no clue what it's all about. It just came up one day, I don't know how long it has been there because a visitor just told me it didn't work. There is this error message on the top of the gallery and the pictures are not showing up. Every category/link I click on in the gallery has the error message on the top, I think it's the same error message as on the index page. This is how the error message looks like:


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 7, 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 i.cat_id = 7 AND c.cat_id = i.cat_id ORDER BY image_date ASC LIMIT 0, 9
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/sites/markfeehily.org.uk/public_html/gillian/images/includes/db_mysql.php on line 116


This is the link to my gallery, http://www.markfeehily.org.uk/gillian/images/
I hope I won't need to add the pictures all over again, though I think I have a back-up.

I use version 1.7.1. I hope I told everything that was necessary to know to solve this problem. If not, tell me. I haven't had a problem with this gallery before.

Thanks in advance for any help, I'm really desperate!

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Error Message(SQL),pictures are not showing up!
« Reply #1 on: April 10, 2006, 07:54:26 PM »
you have to options:
1. search the forum for "mysql5", then you should find a big thread handling this problem,
or
2. you can upgrade to 1.72
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline Shaz

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Error Message(SQL),pictures are not showing up!
« Reply #2 on: April 11, 2006, 07:14:58 PM »
Thank you so much!  :D I upgraded it and it works now! Thanks a million :D