WordPress database error: [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 '' at line 7]
select wp_fah_gallery.id as galleryId,wp_fah_gallery.img_id as imageId,wp_fah_gallery.designer as designerId,wp_fah_gallery.city as cityId,wp_fah_gallery.building as buildingId,wp_fah_gallery.fah_subject as subjectId,wp_fah_building.building_title as buildingTitle,wp_fah_city.city_title as cityTitle,wp_fah_subject.subject_title as subjectTitle, wp_fah_designer.designer_title as designerTitle from wp_fah_gallery inner join wp_fah_building on wp_fah_building.id=wp_fah_gallery.building inner join wp_fah_city on wp_fah_city.id=wp_fah_gallery.city inner join wp_fah_subject on wp_fah_subject.id=wp_fah_gallery.fah_subject inner join wp_fah_designer on wp_fah_designer.id=wp_fah_gallery.designer where wp_fah_gallery.id= /* From [fiveatheart.com/view-gallery-image-item/] in [/nas/content/live/fiveatheartnew/wp-content/themes/divi-child/view-gallery-item-new.php:23] */

WordPress database error: [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 building= and fah_subject= and designer= and id != /* From [fiveatheart.com/' at line 1]
select id,img_id as imageId from wp_fah_gallery where city= and building= and fah_subject= and designer= and id != /* From [fiveatheart.com/view-gallery-image-item/] in [/nas/content/live/fiveatheartnew/wp-content/themes/divi-child/view-gallery-item-new.php:29] */