A prompt has to be associated to a column in your query, so you have given an example, but if this is what your code looks like, then that is why it doesn’t work.
Yes a prompt does need an association to a table and it gets this by way of the column that you associate it to.
You will really need to provide a little bit more information about what exactly your are trying to do with the result of the prompt.