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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:22:22+00:00 2026-05-24T04:22:22+00:00

My Query in file looks like this in the php file: SELECT p.products_id as

  • 0

My Query in file looks like this in the php file:

SELECT
            p.products_id as v_products_id,
            p.products_model as v_products_model,
            p.products_image as v_products_image,
            p.products_price as v_products_price,
            p.products_sku as v_products_sku,
            p.products_upc as v_products_upc,
            p.products_weight as v_products_weight,
            p.products_date_added as v_date_added,
            p.products_date_available as v_date_avail,
            p.products_tax_class_id as v_tax_class_id,
            p.products_quantity as v_products_quantity,
            p.manufacturers_id as v_manufacturers_id,
            subc.categories_id as v_categories_id
            FROM
            zen_products as p,
            zen_categories as subc,
            zen_products_to_categories as ptoc
            WHERE
            p.products_id = ptoc.products_id AND
            p.products_model = 'M150XN05' AND
            ptoc.categories_id = subc.categories_id

I am getting an error returned:
MySQL error 1054: Unknown column ‘p.produc1925ts_tax_class_id’ in ‘field list’
When executing:

SELECT
            p.products_id as v_products_id,
            p.products_model as v_products_model,
            p.products_image as v_products_image,
            p.products_price as v_products_price,
            p.products_sku as v_products_sku,
            p.products_upc as v_products_upc,
            p.products_weight as v_products_weight,
            p.products_date_added as v_date_added,
            p.products_date_available as v_date_avail,
                    -- extra 1925 here
            p.produc1925ts_tax_class_id as v_tax_class_id,
            p.products_quantity as v_products_quantity,
            p.manufacturers_id as v_manufacturers_id,
            subc.categories_id as v_categories_id
            FROM
            zen_products as p,
            zen_categories as subc,
            zen_products_to_categories as ptoc
            WHERE
            p.products_id = ptoc.products_id AND
            p.products_model = 'M150XN05' AND
            ptoc.categories_id = subc.categories_id

Whats going on how are the extra “1925” getting placed into the middle of the selection? Im at a loss, I have tried everything I can think of that could possibly be causing this.

Code in entirety is here http://pastebin.com/embed_iframe.php?i=Q2RHT00W

  • 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-24T04:22:23+00:00Added an answer on May 24, 2026 at 4:22 am

    MySQL doesn’t parse implicit joins as you would expect.

    (Quote removed because it was the wrong paragraph, but this IS a known bug which I have run into before!)

    To avoid confusion, I’d recommending using explicit joins instead:

    zen_products as p,
    zen_categories as subc,
    zen_products_to_categories as ptoc
    WHERE
    p.products_id = ptoc.products_id AND
    p.products_model = 'M150XN05' AND
    ptoc.categories_id = subc.categories_id
    

    Becomes

    zen_products as p
    JOIN zen_products_to_categories as ptoc
        ON p.products_id = ptoc.products_id
    JOIN zen_categories as subc
        ON ptoc.categories_id = subc.categories_id
    WHERE p.products_model = 'M150XN05'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have PHP query to a MSSQL Database. It Looks like this: <?php if
I am using a simple loop that looks like this: $query = SELECT *
I wanted to use SELECT ... WHERE LIKE query against my file's path (VARCHAR)
I have a situation where I would like to use a php file query.php
I'd like my application to query a csv file from a secure website. I
I am creating a file from a SELECT query using sqlplus with SPOOL command.
Right now I have a PHP file that does a MYSQL query and then
I would like to have all variables accessible of the file handler_login.php which I
My links are like http://www.shinylook.ro/product.php?id=58 and I rewrite them like http://www.shinylook.ro/produs/58/saboti-dama/ using this code:
so I have a simple login page like this: <fieldset> <legend>Verification</legend> <form method=post action=authentication.php>

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.