 |  | 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 'and Secondary_Header.ImageID = Images.ImageID and Images.ImageCategoryID = 1 ord' at line 1
select Secondary_Header.* from Secondary_Header,Images where Secondary_Header.SecondaryID = and Secondary_Header.ImageID = Images.ImageID and Images.ImageCategoryID = 1 order by Secondary_Header.SortOrder | |