Title: Database Error
Last modified: August 18, 2016

---

# Database Error

 *  [akestepa](https://wordpress.org/support/users/akestepa/)
 * (@akestepa)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/database-error-1-2-3-4-2/)
 * I used a code I found here to make my comments appear in descending order. Everything
   was find and it worked, but now (the day after), when I go to my wordpress/index.
   php page i get this:
 * Database error: [Got error 28 from table handler]
    SELECT DISTINCT * FROM wp_posts
   WHERE 1=1 AND post_date_gmt <= ‘2004-12-30 21:55:59’ AND (post_status = “publish”)
   GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 1
 * And it says that “No posts matched my criteria”
 * I took out that code I put in and replaced it with what was originally there 
   but the message is still coming up. Any suggestions on how to fix it?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/database-error-1-2-3-4-2/#post-123616)
 * Email your host.
 * This is a MySQL error and has nothing to do with WordPress directly. You should
   probably contact your host about it. Some users have reported that running a 
   â€œrepair tableâ€? command in phpMyAdmin fixed the problem.
 *  Thread Starter [akestepa](https://wordpress.org/support/users/akestepa/)
 * (@akestepa)
 * [21 years, 7 months ago](https://wordpress.org/support/topic/database-error-1-2-3-4-2/#post-123621)
 * Ok, thanks. I’ll try that. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Database Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [akestepa](https://wordpress.org/support/users/akestepa/)
 * Last activity: [21 years, 7 months ago](https://wordpress.org/support/topic/database-error-1-2-3-4-2/#post-123621)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
