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 'Riain_6.jpg' LIMIT 1' at line 1SELECT * FROM `image` where img_name='Elsa_O'Riain_6.jpg' LIMIT 1