Problem with this query?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Okay maybe its late or something but this should work, however I get this

#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 tblVideos.PerformerID

FROM tblVideos

WHERE 1  =1 AND tbl



Anybody got a good clue whats wrong with this SQL?

SELECT tblPerformers.ID, tblPerformers.StageName, tblPics.PicName
FROM tblPerformers, tblPics
WHERE 1 =1 AND tblPerformers.ID = tblPics.PerformerID AND tblPics.Active =
'yes' AND tblPics.Type = 'name' AND tblPerformers.ID
IN ( SELECT UNIQUE tblVideos.PerformerID
FROM tblVideos
WHERE 1 =1 AND tblVideos.Active = 'yes')
ORDER BY tblPics.ID DESC 
LIMIT 0 , 6 

 
Dylan Barber

 
<file:///C:/Documents%20and%20Settings/Dylan/Application%20Data/Microsoft/Si
gnatures/www.codegalaxy.com> www.codegalaxy.com - A webservices company 

DotNetNuke Portal  Specialists

Simple Affordable & Reliable - Web Design, and Programming 

 

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux