to all guru
im redesigning quey and i got sql error result
here is my query
SELECT links.idLink as idlink , links.company as company,links.linkStart as linkStart, links.linkstatus as linkstatus,
upper(concat(customer.name,' ',customer.lastName)) as fullname,
customer.email as email,customer.idCust as idCust,
cartHead.idOrder,cartHead.paymentType
FROM links
left join customer on (customer.idCust= links.idCust)
left join cartHead on (cartHead.idCust=customer.idCust)
left join (select * from cartrows where sku='FFN-0001') as oh on cartHead.idOrder=oh.idOrder
WHERE links.linkType='FFN-0001'
and the error display is
1064 - 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 'select * from cartrows where sku = 'FFN-0001' ) as oh on cartHe
since the original query does not have any join statement and thus a new requirement is to sort
"sorry for my bad english"