SELECT * FROM `CMS_gallery2_images` WHERE `dirID`=37 AND `show` LIKE 'yes' ORDER BY `position` ASC;