vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vbArticles (https://vborg.vbsupport.ru/forumdisplay.php?f=106)
-   -   SQL Error when clicking on a category (https://vborg.vbsupport.ru/showthread.php?t=76620)

AuroraMike 02-19-2005 08:31 AM

SQL Error when clicking on a category
 
Database error in vBulletin 3.0.6:

Invalid SQL:
SELECT c.categoryname, c.categorydesc, c.categoryimg, COUNT(*)
FROM articles_category c
LEFT JOIN articles_article a
ON c.articles_categoryid = a.categoryid
WHERE c.articles_categoryid=5 AND a.draft!='1'
GROUP BY a.articles_articleid ;

mysql error: You have an error in your SQL syntax near ';

' at line 7

mysql error number: 1064

I get the above when I click on a category on the main articles page.
http://www.netflamewar.com/forums/articles.php

The main page comes up just fine but when clicking on a category, that's when I get the above. I'm sure it's a typo but I went over the instructions again and can't find my mistake. Any ideas?

cinq 02-19-2005 08:39 AM

At that line :

PHP Code:

 GROUP BY a.articles_articleid 

Remove the
PHP Code:



Been brought up before.
Change that for a quick fix for v1.0.2.
v2.0 won't have that :)

AuroraMike 02-19-2005 08:48 AM

thanks. I usually do a search before I ask but it's almost 4am where I'm at. ;-)

off topic but is there a way for users to submit an article other than giving them access to the admincp? Am I missing something basic? Right now I'm having ppl email it to me and then I copy paste but it sure would be nice if there were some interface on the articles page or in the usercp so they would get the same WYSIWUG editor that's in the admincp but then they can write/submit there @ the site versus emailing something.

cinq 02-19-2005 09:07 AM

No way for v1.0.2
Again, that's possible in v2.0 :D

3 more days ....


All times are GMT. The time now is 08:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01965 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete