Erro no banco de dados 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 'WHERE alias = 'IMG_5793-15052018184834.jpg'' at line 1SELECT id, tela_id FROM WHERE alias = 'IMG_5793-15052018184834.jpg'