Forum Moderators: coopster
$query ="Select Distinct (b.imageDimension) From portfolioprice b Where b.imageSize in (SELECT a.imageId as id, a.imageName as name, a.imagePhotographe as photographe, a.imageTakeDate as tkdate, b.imageDimension as dim, b.imageSize as size, b.imagePrice as price, c.ModelName as modelName, c.ModelLastName as modelLast, c.ModelId as modelId FROM portfolio a, portfolioprice b, model c, portfoliomodel d where a.imageId=b.imageId and c.ModelId=d.imageModelId and a.imageId=d.imageId and a.imagePath='PXS20080626566DSC04816copy.jpg')";
Everytime i am running it, I get this error...
MySql Says:
#1241 - Operand should contain 1 column(s)
Can somebody helpme with that?
Thanks.
Select imageDimension, imageSize, imagePrice from portfolioprice where imagePrice in(
SELECT b.imagePrice
FROM portfolio a, portfolioprice b WHERE a.imagePath = 'PXS20080626566DSC04816copy.jpg' and a.imageId=b.imageId
)
Thanks So much!
Nice work, Cameleon. Welcome to WebmasterWorld :)