Jump to content

[SOLVED] PHP Query Help


Canman2005

Recommended Posts

Hi all

 

I have the following query

 

SELECT SUM(x.type_price) AS total FROM (SELECT DISTINCT type_uid, type_price FROM cart_log WHERE `unique_id`= '76202714-20081115-1239-125853-15364793' AND `type_type` = 4) AS X

 

but getting error

 

#1109 - Unknown table 'x' in field list

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/132850-solved-php-query-help/
Share on other sites

Sorry for double posting Barand

 

I'm a little bit lost on what you mean, I have done that QUERY and it runs fine locally on my test server, but on a live server I get that error.

 

Not too sure what you mean by "x and X are not the same for MySQL"

 

any help would be appreciated

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.