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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-09-2006, 09:09 PM   #1
eroswebmaster
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.
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:11 PM   #2
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
what are you doing to get the error?
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:12 PM   #3
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
Quote:
Originally Posted by SPeRMiNaToR
what are you doing to get the error?

Yeah . . . add a plugin, SE friendly permalinks . . . what?
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:12 PM   #4
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Quote:
Originally Posted by SPeRMiNaToR
what are you doing to get the error?
I just finished a design fora blog and was running a test post and when I click on a category or click on the test post link I get that.
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:13 PM   #5
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Quote:
Originally Posted by baddog
Yeah . . . add a plugin, SE friendly permalinks . . . what?
Permalinks are next...just testing the blog after puttig up the design and I got this error.
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:14 PM   #6
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
Quote:
Originally Posted by eroswebmaster
I just finished a design fora blog and was running a test post and when I click on a category or click on the test post link I get that.
hmmm, sorry . . . no idea then
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:17 PM   #7
Brujah
Beer Money Baron
 
Brujah's Avatar
 
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.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:20 PM   #8
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
Quote:
Originally Posted by Brujah
Could be the design that interfered with the php code.

That would be my first guess
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:23 PM   #9
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Quote:
Originally Posted by Brujah
Could be the design that interfered with the php code.
I have switched themes to the preinstalled wp themes and still same error.
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:25 PM   #10
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
Quote:
Originally Posted by eroswebmaster
I have switched themes to the preinstalled wp themes and still same error.
did you just install WP? Might have been a db fuck up
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:26 PM   #11
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Quote:
Originally Posted by SPeRMiNaToR
did you just install WP? Might have been a db fuck up
No it had been running for a bit..but I had not really worked with it yet...but I'm thinking about just wiping the db and reinstalling it and upping the template I designed and go from there.
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:34 PM   #12
JD
Too lazy to set a custom title
 
Industry Role:
Join Date: Sep 2003
Posts: 22,651
Quote:
Originally Posted by eroswebmaster
No it had been running for a bit..but I had not really worked with it yet...but I'm thinking about just wiping the db and reinstalling it and upping the template I designed and go from there.
since you're not gunna lose much that might be faster/easier than figuring out wtf is going on with it
JD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 09:35 PM   #13
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Quote:
Originally Posted by SPeRMiNaToR
since you're not gunna lose much that might be faster/easier than figuring out wtf is going on with it
Yep...LOL I figured this would be one of those 2 hour gigs to find the 5 minute solution, so best just to wipe it
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-09-2006, 10:50 PM   #14
BigFlexy
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.
BigFlexy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.