|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
March 1st, 2003
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
|
Getting a wordpress mysql db error. Help anyone?
This is the error code..and believe me you I don't understand mysql for shit.
WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '-3' at line 1] SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND (category_id = 2) AND post_date_gmt <= '2006-02-10 16:58:59' AND (post_status = "publish" OR post_author = 1 AND post_status != 'draft' AND post_status != 'static') AND post_status != "attachment" GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, -3-3 Thanks for any help you can offer. |
|
|
|
|
|
#2 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
what are you doing to get the error?
|
|
|
|
|
|
#3 | |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
|
Quote:
Yeah . . . add a plugin, SE friendly permalinks . . . what? |
|
|
|
|
|
|
#4 | |
|
March 1st, 2003
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
|
Quote:
|
|
|
|
|
|
|
#5 | |
|
March 1st, 2003
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Beer Money Baron
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
|
You have an error in your SQL syntax.
ok, seriously.. for some reason you have -3 -3 in there that probably shouldn't be. Can't tell without seeing the code. Could be the design that interfered with the php code.
__________________
|
|
|
|
|
|
#8 | |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
|
Quote:
That would be my first guess |
|
|
|
|
|
|
#9 | |
|
March 1st, 2003
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
|
Quote:
|
|
|
|
|
|
|
#10 | |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
Quote:
|
|
|
|
|
|
|
#11 | |
|
March 1st, 2003
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
|
Quote:
|
|
|
|
|
|
|
#12 | |
|
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2003
Posts: 22,651
|
Quote:
|
|
|
|
|
|
|
#13 | |
|
March 1st, 2003
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
|
Quote:
|
|
|
|
|
|
|
#14 |
|
Registered User
Join Date: Sep 2004
Location: Brampton
Posts: 78
|
I think the problem is in the Inner Join statement.
JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) Doesn't make sense to join the catagory id on the post id. Should be catagory ID on Catagory ID. Also, only use one set of quotes. " or ' . Don't mix and match them. they always give headaches. |
|
|
|