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 = '20180510_090401-31072018154429.jpg'' at line 1SELECT id, tela_id FROM WHERE alias = '20180510_090401-31072018154429.jpg'