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

  • Home
  • SEARCH
  • 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

Suppose you're working on an enterprise project in which you have to get management
I am responsible for a Delphi/Win32 project management application. I have just completed a
While project managers may each have their own personality and management style, it seems
I have a project that I'm currently working on but it currently only supports
I have C++ project (VS2005) which includes header file with version number in #define
In our organization we have 6 teams: 3 project teams who provide software to
I have project that I'm working on that is going to require a webserver.
I have a project that I would like to start beta testing soon, it
I have a project where I would like to generate a report export in
I have a project with a bunch of external sounds to a SWF. I

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.