Author |
Message |
Gravitron VIE Vet

Age:43 Gender: Joined: Aug 02 2002 Posts: 993 Location: Israel Offline
|
|
Back to top |
|
 |
Gravitron VIE Vet

Age:43 Gender: Joined: Aug 02 2002 Posts: 993 Location: Israel Offline
|
Posted: Sat Jul 30, 2005 5:46 pm Post maybe stupid Post subject: |
 |
|
|
|
Alright, so I'm missing a category table.
I think I know why, I messed with categories and forums earlier (like 24 hours ago, heh).
But which table indexes the missing table?
Where is it hiding, must find...then can remove...then no more errors!  |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sat Jul 30, 2005 5:47 pm Post maybe stupid Post subject: |
 |
|
|
|
Damn you, posting 2 seconds before I do huh.  |
|
Back to top |
|
 |
Gravitron VIE Vet

Age:43 Gender: Joined: Aug 02 2002 Posts: 993 Location: Israel Offline
|
|
Back to top |
|
 |
Pests Novice
Joined: Feb 24 2003 Posts: 84 Offline
|
Posted: Sun Jul 31, 2005 9:40 pm Post maybe stupid Post subject: |
 |
|
|
|
If you look at the original query:
SELECT * FROM phpbb_forums f WHERE f.cat_id = c.cat_id ORDER BY c.cat_order, f.forum_order ASC
You see phpbb_forums is being represented as f later in the query. The problem is, c is being used as a reference before it was defined. I'm assuming c stands for category, so you need to change the query to:
SELECT * FROM phpbb_forums f, phpbb_category c WHERE f.cat_id = c.cat_id ORDER BY c.cat_order, f.forum_order ASC
Assuming phpbb_category is the name of the category table (not sure if its plural or whatnot). |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Mon Aug 01, 2005 11:21 am Post maybe stupid Post subject: |
 |
|
|
|
Uhhh, Pests, look at Solo Ace's post. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Pests Novice
Joined: Feb 24 2003 Posts: 84 Offline
|
Posted: Tue Aug 02, 2005 4:55 pm Post maybe stupid Post subject: |
 |
|
|
|
Damn, thats what I get for not reading replies.  |
|
Back to top |
|
 |
|