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

0 Members and 1 Guest are viewing this topic.

Offline almuhajir

  • Pre-Newbie
  • Posts: 3
    • View Profile
DB Error: Bad SQL Query
« on: March 18, 2008, 05:01:49 PM »
عند استجلاب صورة عشوائية يصادفني هذا الخطأ
ashwae.php

Code: [Select]
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 IN (0, 8, 16, 39, 1, 40, 17, 9, 3, 18, 41, 2, 10, 11, 4, 19, 42, 5, 20, 12, 43, 21, 6, 13, 22, 7, 14, 23, 24, 15, 37, 25, 26, 38, 27, 46, 28, 45, 29, 30, 31, 32, 33, 34, 35, 36) ORDER BY i.image_date DESC LIMIT 4
Unknown column 'i.user_id' in 'on clause'

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/user/public_html/gallery/includes/db_mysql.php on line 116

مع اني المكتبة شغالة بدون مشاكل