WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1]
SELECT * FROM media_gallery WHERE attachment_id =


Notice: Trying to get property of non-object in /var/www/wp-devel/wp-content/themes/DeepFocus-child/media_gallery.php on line 87


Notice: Trying to get property of non-object in /var/www/wp-devel/wp-content/themes/DeepFocus-child/media_gallery.php on line 93

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1]
SELECT * FROM media_gallery WHERE attachment_id =