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 8138551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:31:31+00:00 2026-06-06T11:31:31+00:00

OpenCart v1.5.3.1, Export plugin: $query = SELECT pd.*, cg.name FROM `.DB_PREFIX.product_discount` pd ; $query

  • 0

OpenCart v1.5.3.1, Export plugin:

    $query  = "SELECT pd.*, cg.name FROM `".DB_PREFIX."product_discount` pd ";
    $query .= "LEFT JOIN `".DB_PREFIX."customer_group` cg ON cg.customer_group_id=pd.customer_group_id ";
    $query .= "ORDER BY pd.product_id, cg.name";

Can anybody explain, what pd and cg means here?

Meet similar sintax in other places, but not sure what it means and how to work with it…

Looks like it is some common thing, but I am quite new to work with data bases yet, please help 🙁

This query generate error:

Notice: Error: Unknown column ‘cg.name’ in ‘field list’ Error No:
1054

  • 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-06-06T11:31:34+00:00Added an answer on June 6, 2026 at 11:31 am
    pd is the alias name for table `product_discount`
    cg is the alias name for table `customer_group`
    

    Notice: Error: Unknown column 'cg.name' in 'field list' Error No: 1054
    

    This would actually mean there is no field of name in the table customer_group

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

Sidebar

Related Questions

Using an opencart plugin I am getting these errors in my apache error log
I am having troubles passing data from the controller to the model in opencart(1.5.3).
I using opencart, passing a product name to the contact page, to be used
I am working on an Opencart site and for the categories on the left
I am in the process of doing a data migration from OpenCart into Drupal
It there a way to read everything from within a language with Opencart? At
Using OpenCart how would I use a 301 redirect to add www. to the
I'm using OpenCart, and I have a series of AJAX calls that are hidden
I have downloaded and installed OpenCart v1.5.2.1. Now I'm using the default template in
I have a client who is using OpenCart v.1.5.2.1 and they have one shipping

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.