SELECT Title,
Main_Caption
FROM galleries
WHERE Private = 'No'
AND Control = '#Control#'
AND Main_Gallery = 'No'
SELECT Caption,
Picture
FROM galleries
WHERE Control = '#Control#'
AND Thumbnail != ''
ORDER BY Sort_Order ASC
There are no pictures currently in this gallery, please check back!