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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:43:14+00:00 2026-06-15T16:43:14+00:00

For some reason there’s an error in the following query, it gives FUNCTION j.CONCAT

  • 0

For some reason there’s an error in the following query, it gives “FUNCTION j.CONCAT does not exist” When i remove the concat and just put .price there’s no problem so the problem must be somewhere in the concat… The sql retrieves the bought also items from the database.

SELECT k.productid_with             AS productid_with, 
   g.product                    AS product_with_product, 
   j.CONCAT('€ ', price)   AS productid_with_price, 
   Replace(o.image_path, 
   '/home/user/domains/domain.com/public_html', 
   'http://www.domain.com') AS productid_with_image, 
   Replace(l.image_path, 
   '/home/user/domains/domain.com/public_html', 
   'http://www.domain.com') AS productid_with_bigImage, 
   k.productid, 
   h.product, 
   i.CONCAT('€ ', price) AS price, 
   Replace(m.image_path, 
   '/home/user/domains/domain.com/public_html', 
   'http://www.domain.com') AS image, 
   Replace(n.image_path, 
   '/home/user/domains/domain.com/public_html', 
   'http://www.domain.com') AS bigImage 
FROM   xcart_also_bought k 
   JOIN xcart_products_categories c 
     ON c.productid = 8863 
   JOIN xcart_categories d 
     ON c.categoryid = d.categoryid 
        AND d.parentid = 0 
   JOIN xcart_products a 
     ON k.productid_with = a.productid 
        AND a.forsale = 'Y' 
   JOIN xcart_products_categories e 
     ON a.productid = e.productid 
        AND e.categoryid = d.categoryid 
   JOIN xcart_products_lng g 
     ON a.productid = g.productid 
   JOIN xcart_pricing j 
     ON a.productid = j.productid 
   JOIN xcart_thumbnails o 
     ON a.productid = o.productid 
   JOIN xcart_bigthumbnails l 
     ON a.productid = l.productid 
   JOIN xcart_products b 
     ON k.productid = b.productid 
        AND b.forsale = 'Y' 
   JOIN xcart_products_categories f 
     ON b.productid = f.productid 
        AND f.categoryid = d.categoryid 
   JOIN xcart_products_lng h 
     ON b.productid = h.productid 
   JOIN xcart_pricing i 
     ON b.productid = i.productid 
   JOIN xcart_thumbnails m 
     ON b.productid = m.productid 
   JOIN xcart_bigthumbnails n 
     ON b.productid = n.productid 
WHERE  ( k.productid = '8863' 
      OR k.productid_with = '8863' ) 
ORDER  BY bought DESC 
  • 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-15T16:43:15+00:00Added an answer on June 15, 2026 at 4:43 pm

    Can you use it like this please?

    CONCAT('€ ', j.price)   AS productid_with_price, 
    
    CONCAT('€ ', i.price) AS price, 
    

    And to tell you a secret 😀 MYSQL doesn’t have j.CONCAT and i.CONCAT ………..
    It only has CONCAT

    To point out explicitly, you are putting table alias on CONCAT function where as you should put it on your fields 🙂

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

Sidebar

Related Questions

The li tag in the ul is not indented for some reason. is there
hi im trying to using flashVars however for some reason there not getting sent
By some reason there's a parsing error with the ajax code below. How could
I have just created an empty jface window. But for some reason there is
For some reason I never see this done. Is there a reason why not?
For some reason there's a variable called d that is defined immediately after I
I am using the ccTouchBegan and ccTouchEnded, and for some reason there is a
Is this a bug in jQueryUI's dialog or is there some reason this is
I think there is a simple answer to this, but for some reason I
Is there a specific reason why some people put a semicolon after the curly

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.