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

0 Members and 1 Guest are viewing this topic.

Offline raghunadhreddys

  • Newbie
  • *
  • Posts: 46
    • View Profile
DB Error: Bad SQL Query
« on: May 14, 2011, 06:33:11 AM »
i am getting the error

includes/db_mysql.php on line 116

and displaying on my home page and new images are not showing.

getting the message

"Currently there are no new images."

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 (dtwp_images i, dtwp_categories c) LEFT JOIN dtwp_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 20
Incorrect key file for table '/tmp/#sql_221_0.MYI'; try to repair it



Rembrandt

  • Guest
Re: DB Error: Bad SQL Query
« Reply #1 on: May 14, 2011, 06:52:28 AM »
....Incorrect key file for table '/tmp/#sql_221_0.MYI'; try to repair it

Contact your host administrator, it's server side problem.

mfg Andi