Unknown column 'img' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = img and session_id = "61g1khlug85s94ct5mt8n7ukr6"