Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 566633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:59:55+00:00 2026-05-13T12:59:55+00:00

I have a project management website running on PHP and MySQL. But I am

  • 0

I have a project management website running on PHP and MySQL. But I am not the person who developed it, which makes it harder for me to figure out what the problem is. So I turned to stack overflow.

When I try to sort a list of objects, MySQL server throws an exception at me, saying:

“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 ‘GROUP BY company_id’ at line 10”.

So I searched throughout the entire source code for “GROUP BY company_id“, and found one occurrence, which was not at line 10, first of all, and second, I didn’t see anything wrong with it.

That line looked like:

$sql .= " GROUP BY company_id
          ORDER BY $orderby";

$rows = db_loadList( $sql );

I have tried researching on this topic, but could not find anything specific.
I know this is really not enough information, but I just want to know in general what could possibly cause this problem and if any of you have ever seen it before.

Any kind of input would be greatly appreciated.
Thanks,

Vlad

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:59:55+00:00Added an answer on May 13, 2026 at 12:59 pm

    so I figured out the problem. it wasn’t actually an SQL problem. The problem was caused by the way a request string was built. I realized that there were two question marks instead of a one (i.e. “??”) at the beginning of the request string. That was causing the SQL server to complain about syntax for some reason. But thank you all anyway for your effort.

    Best of luck,

    Vlad

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a project (employee management system), now I am on reporting part.
I have C# project in which I am using Microsoft.SqlServer.Management.Smo, Microsoft.SqlServer.batchparser.dll and few other
I'm trying to do some customization of a Trac project management website and have
I have developed an MVC3 application based around Project Management. The data source is
I am working on project -online file management where we have to tore file
I have to start a new project where user authentication/management will be required. A
I have project in Dropbox and two running laptops: one with Ubuntu and one
I have an e-commerce website that is already up and running for some time.
i have a project on newsletter management system. in asp.net.. i am student and
I'm working on a project management app, where every company (which uses our app)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.